Header is not passed to proxy

Hi Maxim, thanks a lot for your moduel. it was extremely useful for me.

I have the following config:
location /upload {
auth_request /auth;

location /auth {
proxy_pass ;
}

The initial request to /upload has header. I have supposed this header
to be
propogated down to . But this does not happen.

Question: does it mean that i have to use $request_uri instead of header
propogation?

Thanks a lot!
Oleksiy

Posted at Nginx Forum:

The header value should be in quotes:
“$x_your_header”

Posted at Nginx Forum:

Hello!

On Wed, Aug 29, 2012 at 12:42:28PM -0400, mokriy wrote:

The initial request to /upload has header. I have supposed this header to be
propogated down to . But this does not happen.

Question: does it mean that i have to use $request_uri instead of header
propogation?

I don’t really understand the question, but original request
headers are passed to auth service by default. If it doesn’t work
for you - probably you did something wrong.

Maxim D.