<html>
<body>
Hi Igor,<br><br>
Thanks for your response. <br><br>
Actually, I'm using nginx as a load balancer for a number of ZEO clients
and a ZEO server. So the more precise picture should be<br><br>
Aapche -> Squid -> nginx -> ZEO clients -> ZEO server
(Plone)<br><br>
The reason that I'm using nginx as a load balancer is that is has
<a href="http://wiki.codemongers.com/NginxHttpUpstreamFairModule">Fair
Proxy Balancer</a> that Apache and Squid don't have.<br><br>
Since I've tried taking nginx out of the chain and I see that Plone
recognize the header, there must be something about nginx that's causing
it. Do you have any idea on that? My nginx.conf is something like
this<br><br>
worker_processes 1;<br><br>
events {<br>
worker_connections 256;<br>
}<br><br>
http {<br>
upstream zeo_clients {<br>
server
<ip_of_zeo_client1>;<br>
server
<ip_of_zeo_client2>;<br>
....<br>
fair;<br>
}<br><br>
server {<br>
listen 3800;<br>
server_name
localhost;<br><br>
location / {<br>
proxy_pass
<a href="http://zeo_clients/" eudora="autourl">http://zeo_clients</a>;<br>
}<br>
}<br>
}<br><br>
Thanks a lot!<br><br>
At 10:13 PM 9/9/2008, Igor Sysoev wrote:<br>
<blockquote type=cite class=cite cite="">On Tue, Sep 09, 2008 at
01:53:04PM -0700, Alex Man wrote:<br><br>
> I have the following setup:<br>
> <br>
> Apache -> Squid -> nginx -> Zope<br>
> <br>
> Zope needs a header that is set by Apache in httpd.conf like the
following:<br>
> <br>
> RequestHeader set USER %{VALUE}<br>
> <br>
> My question is, how can I ask nginx to pass on this header to Zope?
<br>
> I'm sure nginx is the problem because if I take nginx out of the
chain:<br>
> <br>
> Apache -> Squid -> Zope<br>
> <br>
> Zope can immediately see the header.<br>
> <br>
> I tried using the proxy_set_header directive like the following in
<br>
> nginx.conf<br>
> <br>
> proxy_set_header USER $USER<br>
> <br>
> but it doesn't seem to work.<br><br>
You should do nothing on nginx side: it will pass the header to Zope
by<br>
default.<br><br>
BTW, I think that nginx is unneccessary in this chain:<br><br>
Apache -> Squid -> nginx -> Zope<br><br>
and probably<br><br>
Squid -> Apache -> Zope<br><br>
is more logical chain.<br><br>
<br>
-- <br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" eudora="autourl">http://sysoev.ru/en/</a>
</blockquote>
<x-sigsep><p></x-sigsep>
Regards,<br><br>
Alex</body>
</html>