How to retrieve HTTP header from Apache in nginx?

Alex Man alexman at
Wed Sep 10 00:53:04 MSD 2008


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!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list