NGINX not passing header to proxy

Sesshomurai nginx-forum at
Tue Jan 1 17:32:58 UTC 2019

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.

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

More information about the nginx mailing list