Auth request module header passing

Hi Maxim,
Many thanks to your work!

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

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
from
initial request?

Thanks in advance,
Oleksiy

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

It works,
you have to put header in quotes:
“$http_x_header_from_request”

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

Hello mokriy,

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

I am working to setup auth_request using my own form and with a CGI
program
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