Header is not passed to proxy

Maxim Dounin mdounin at mdounin.ru
Fri Aug 31 21:52:40 UTC 2012


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

> 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 <authserviceURL>;
>         }
> The initial request to /upload has header. I have supposed this header to be
> propogated down to <authserviceURL>. 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 Dounin

More information about the nginx mailing list