Welcome! Log In Create A New Profile

Advanced

NGINX not passing header to proxy

December 31, 2018 10:01AM
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.
Subject Author Posted

NGINX not passing header to proxy

Sesshomurai December 31, 2018 10:01AM

Re: NGINX not passing header to proxy

Francis Daly December 31, 2018 12:00PM

Re: NGINX not passing header to proxy

Sesshomurai January 01, 2019 11:48AM

Re: NGINX not passing header to proxy

Sesshomurai January 01, 2019 11:58AM

Re: NGINX not passing header to proxy

Sesshomurai January 01, 2019 12:32PM

Re: NGINX not passing header to proxy

Francis Daly January 02, 2019 07:50AM

Re: NGINX not passing header to proxy

Sesshomurai January 02, 2019 11:57AM

Re: NGINX not passing header to proxy

Sesshomurai January 02, 2019 12:17PM

Re: NGINX not passing header to proxy

Francis Daly January 02, 2019 03:18PM

Re: NGINX not passing header to proxy

Sesshomurai January 03, 2019 06:17PM

Re: NGINX not passing header to proxy

Francis Daly January 04, 2019 06:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready