httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olivier giorgi <olivier_gio...@yahoo.fr>
Subject [users@httpd] Load balancing query.
Date Tue, 26 Feb 2008 07:04:39 GMT
Hello to all, 

1) With Apache 2.2.4 the following statefull load balancing syntax is correct:

SetEnvIf ^Cookie$ "MYCOOKIE=([^ ;]*)" MYCOOKIE=$1
Header add Set-Cookie "MYCOOKIE=%{UNIQUE_ID}e.%{BALANCER_WORKER_ROUTE}e; path=/" env=!MYCOOKIE

ProxyPass /RootURI balancer://Cluster  stickysession=MYCOOKIE nofailover=Off
<Proxy balancer://Cluster >
BalancerMember http://Server1:Port1/RootURI route=host1 
BalancerMember http://Server2:Port2/RootURI route=host2 
</Proxy>
ProxyPassReverse http://Server1:Port1/RootURI 
ProxyPassReverse http://Server2:Port2/RootURI 

2) Please, could you explain me why with Apache 2.2.4 the following statefull syntax is wrong:

ProxyPass /RootURI balancer://Cluster  stickysession=JSESSIONID nofailover=Off
<Proxy balancer://Cluster >
BalancerMember http://Server1:Port1/RootURI 
BalancerMember http://Server2:Port2/RootURI 
</Proxy>

Apache 2.2.4 does not take into account the parameter JSESSIONID and the observed behavior
is the same as a stateless load balancing.

Thanks in advance & have a good day.
Best regards Olivier.


      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
Mime
View raw message