Auth request module header passing

mokriy nginx-forum at
Thu Aug 30 07:46:47 UTC 2012

Hi Maxim,
Many thanks to your work!

I am using auth req module and have experienced the following problem
I can't get the headers to be passed to auth backend from initial request.

location /initial {
auth_request /auth

location /auth {
proxy_pass <authServiceURL>;
proxy_set_header X-Header $http_x_header_from_request;

Unfortunately, auth service does not receive the X-header. 
Do I understand correct that auth_req module does not receive headers from
initial request?

Thanks in advance,

Posted at Nginx Forum:,230313,230313#msg-230313

More information about the nginx mailing list