When you’re proxying requests via nginx, you might assume after reading [the documentation] that every header is forwarded, except for the Host and Connection headers.
You’d also be wrong.
nginx drops all headers with an underscore in them.
This is a configurable settings. You can turn it on with a simple
I’m still baffled as to *why* this is [a configuration parameter]. And why it is turned off by default. And why there is no mention of it in the proxy docs.
#nginx for helping me figure this out.
: http://wiki.nginx.org/HttpProxyModule" data-mce-href= : http://wiki.nginx.org/HttpCoreModule#underscores_in_headers