NGINX not passing header to proxy

Sesshomurai nginx-forum at
Mon Dec 31 15:01:54 UTC 2018

  I am having a problem with NGINX not forwarding a request header to my

Here is the location:

    location /xyz {
           proxy_pass_request_headers      on;
           proxy_pass https://someserver/;

I make the call passing "userAccount" header and it never gets sent to the
proxy, but if I declare it in the location, it does get passed.
Other headers are passed to proxy.

Adding this works, but I need to pass the header in the client request.

           proxy_set_header 'userAccount' 'someuser';

Any tips appreciated.

Posted at Nginx Forum:,282518,282518#msg-282518

More information about the nginx mailing list