Auth request module header passing

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

location /initial {
auth_request /auth

location /auth {
proxy_pass ;
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
initial request?

Thanks in advance,

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

It works,
you have to put header in quotes:

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

Hello mokriy,

Are you using the perl script that Maxim included with auth_request or
you doing it some other way?

I am working to setup auth_request using my own form and with a CGI
in C but I would be very interested in what you are doing.

What does “” represent in your nginx.conf?

Thank you both very much.

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