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:
http://forum.nginx.org/read.php?2,230292,230292#msg-230292

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

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230292,230325#msg-230325

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs