<html>
<body>
Hi Aleks,<br><br>
Thanks for your information. <br><br>
My problem is that, as I described in my first email, a header is not
passed by nginx to the ZEO clients for some reason. Igor said that it
should pass the header to Zope by default but I think it's not doing that
since as soon as I take nginx out of the chain, Plone can see the header.
<br><br>
For your reference, the following is my first email with some more
details:<br><br>
<i>I have the following setup<br><br>
Apache -&gt; Squid -&gt; nginx -&gt; ZEO clients -&gt; ZEO server
(Plone)<br><br>
Plone needs a header for authentication that is set by Apache in
httpd.conf like the following:<br><br>
<b>RequestHeader set USER %{VALUE}<br><br>
</b>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:<br><br>
Apache -&gt; Squid -&gt; ZEO clients -&gt; ZEO server (Plone)<br><br>
Plone can immediately recognize the user (so I assume it sees the
header). <br><br>
I tried using the proxy_set_header directive like the following in
nginx.conf<br><br>
<b>proxy_set_header USER $USER<br><br>
</b>but it doesn't seem to work.<br><br>
</i>Any help is appreciated. Thanks a lot!<br><br>
At 11:11 AM 9/13/2008, Aleksandar Lazic wrote:<br>
<blockquote type=cite class=cite cite="">Hi Alex,<br><br>
On Fre 12.09.2008 11:16, Alex Man wrote:<br>
<blockquote type=cite class=cite cite="">Hi Aleks,<br><br>
Thanks for your response.<br><br>
The reason I'm using nginx instead of other load balancers such as<br>
HAProxy and Pound is that they don't support (I believe) the fair<br>
balancing algorithm provided by the Fair Proxy Balancer<br>
(<a href="http://wiki.codemongers.com/NginxHttpUpstreamFairModule" eudora="autourl">
http://wiki.codemongers.com/NginxHttpUpstreamFairModule</a>) module
of<br>
nginx. I would like the load balancer to send request to the<br>
least-busy ZEO client.</blockquote><br>
ok.<br><br>
haproxy can at the moment only:<br><br>
roundrobin, leastconn, source IP address, uri, url_param and
appsession<br>
balancing<br><br>
the least-busy is pland but a eta is not available.<br><br>
<blockquote type=cite class=cite cite="">I'm using Apache because I'm
also using<br>
&lt;<a href="http://shibboleth.internet2.edu/%3EShibboleth" eudora="autourl">
http://shibboleth.internet2.edu/&gt;Shibboleth</a> for authentication and
I<br>
believe the Shibboleth module can only be loaded in Apache.<br><br>
So, should I still be using nginx for the reason I listed above?<br>
Thanks a lot!</blockquote><br>
I think yes.<br><br>
BR<br><br>
Aleks<br>
</blockquote>
<x-sigsep><p></x-sigsep>
Regards,<br><br>
Alex</body>
</html>