Welcome! Log In Create A New Profile

Advanced

Re: NGINX not passing header to proxy

January 01, 2019 12:32PM
Actually, had the wrong variable name in location for x-api-key, so now I get the correct request header printed back to me

$ curl -i -H "x-api-key:somekey" -H "userAccount:someaccount" https://localhost/ --insecure
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Tue, 01 Jan 2019 17:30:28 GMT
Content-Type: application/octet-stream
Content-Length: 127
Connection: keep-alive

request: GET / HTTP/1.1; x-api-key: somekey; userAccount: someaccount

But the proxy still does not like what NGINX is sending vs. me sending it directly with curl.
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: 323
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