NGINX not passing header to proxy

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


Hi,
  I am having a problem with NGINX not forwarding a request header to my
proxy.

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: https://forum.nginx.org/read.php?2,282518,282518#msg-282518



More information about the nginx mailing list