How to retrieve HTTP header from Apache in nginx?

Alex Man alexman at seas.ucla.edu
Wed Sep 10 00:53:04 MSD 2008


Hi,

I have the following setup:

Apache -> Squid -> nginx -> Zope

Zope needs a header that is set by Apache in httpd.conf like the following:

RequestHeader set USER %{VALUE}

My question is, how can I ask nginx to pass on this header to Zope? 
I'm sure nginx is the problem because if I take nginx out of the chain:

Apache -> Squid -> Zope

Zope can immediately see the header.

I tried using the proxy_set_header directive like the following in nginx.conf

proxy_set_header USER $USER

but it doesn't seem to work.

Any help is apprecaited. Thanks a lot!


Regards,

Alex 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080909/c5de8d65/attachment.html>


More information about the nginx mailing list