Welcome! Log In Create A New Profile

Advanced

Re: NGINX not passing header to proxy

Francis Daly
January 04, 2019 06:48AM
On Thu, Jan 03, 2019 at 06:17:44PM -0500, Sesshomurai wrote:

Hi there,

> This problem was resolved with the help of the cloud provider. Turns out I
> need to set the Host header
>
> proxy_set_header Host upstreamhostname;

Good that you now have it working.

Note that nginx should set the Host: header to the name used in the
proxy_pass directive, so that if your config used the same upstreamserver
string in

proxy_pass https://upstreamserver/0_1_0/ecfr;

as in the test curl command

$ curl -i -H "x-api-key:APIKEY" -H "userAccount:USER1" https://upstreamserver/0_1_0/ecfr?index=title48 --insecure

then it should have Just Worked.

But perhaps there were different words edited to the same word for the email.

Thanks for providing the final outcome, so that the next person with
the same issue will have a chance to find the answer in the mailarchive.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 267
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