NGINX not passing header to proxy

Francis Daly francis at
Wed Jan 2 12:48:53 UTC 2019

On Tue, Jan 01, 2019 at 12:32:58PM -0500, Sesshomurai wrote:

Hi there,

> Actually, had the wrong variable name in location for x-api-key, so now I
> get the correct request header printed back to me

Ok, so the specific issue in the Subject: line is apparently no longer
a problem.

> But the proxy still does not like what NGINX is sending vs. me sending it
> directly with curl.

What does your nginx do that you do not want it to do? Or, what does it
not do that you want it to do?

Can you show a curl command that goes direct to your upstream that
"works", and a similar curl command that goes to your nginx that "fails"?

Perhaps you can get your upstream server to show exactly what it gets
in both cases, and you can spot the difference between the two.

Francis Daly        francis at

More information about the nginx mailing list