<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 -&gt; Squid -&gt; nginx -&gt; ZEO clients -&gt; 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>
&nbsp;&nbsp;&nbsp; worker_connections 256;<br>
}<br><br>
http {<br>
&nbsp;&nbsp;&nbsp; upstream zeo_clients {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server
&lt;ip_of_zeo_client1&gt;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server
&lt;ip_of_zeo_client2&gt;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fair;<br>
&nbsp;&nbsp;&nbsp; }<br><br>
&nbsp;&nbsp;&nbsp; server {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listen 3800;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server_name&nbsp;
localhost;<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
proxy_pass
<a href="http://zeo_clients/" eudora="autourl">http://zeo_clients</a>;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; }<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>
&gt; I have the following setup:<br>
&gt; <br>
&gt; Apache -&gt; Squid -&gt; nginx -&gt; Zope<br>
&gt; <br>
&gt; Zope needs a header that is set by Apache in httpd.conf like the
following:<br>
&gt; <br>
&gt; RequestHeader set USER %{VALUE}<br>
&gt; <br>
&gt; My question is, how can I ask nginx to pass on this header to Zope?
<br>
&gt; I'm sure nginx is the problem because if I take nginx out of the
chain:<br>
&gt; <br>
&gt; Apache -&gt; Squid -&gt; Zope<br>
&gt; <br>
&gt; Zope can immediately see the header.<br>
&gt; <br>
&gt; I tried using the proxy_set_header directive like the following in
<br>
&gt; nginx.conf<br>
&gt; <br>
&gt; proxy_set_header USER $USER<br>
&gt; <br>
&gt; 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>
&nbsp;Apache -&gt; Squid -&gt; nginx -&gt; Zope<br><br>
and probably<br><br>
&nbsp;Squid -&gt; Apache -&gt; 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>