I have 2 zope servers behind a reverse proxy; i'm trying to balance them, following the apache-wiki guide
"Load balancing with appservers who set a bad sticky cookie"
The configuration works with problems:
Planning a Server maintenance: under the balancer web page, i need to put one server offline. I'm using the server00, i put the server00 as Disabled.
The application gives me an http 503 error, until I manually delete the apache's added cookie "sticky.server00"
Some better suggestion(s)?
Here is my conf:
<VirtualHost 192.168.122.164:443>
ServerName www.example.com
ProxyPreserveHost On
SSLProxyEngine on
<Proxy balancer://mela>
BalancerMember https://192.168.121.84/ route=server00 keepalive=On
BalancerMember https://192.168.121.88/ route=server01 keepalive=On
ProxySet stickysession=ROUTEID nofailover=On
</Proxy>
Header add Set-Cookie "ROUTEID=sticky.%{BALANCER_WORKER_ROUTE}e;path=/;" env=BALANCER_ROUTE_CHANGED
<Location "/balancer">
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from localhost 127.0.0.1 192.168.121.1 192.168.122.1 .example.com .example.edu 192.168.201.1
</Location>
ProxyPass /balancer !
ProxyPass /status !
ProxyPass / balancer://mela/APPL1/PATH1/
ProxyPassReverse / balancer://mela/APPL1/PATH1/
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/star_example_com.crt
SSLCertificateKeyFile /etc/pki/tls/private/star_example_com.key
SSLCertificateChainFile /etc/pki/tls/certs/intermediateCA.crt
SSLCACertificateFile /etc/pki/tls/certs/bundleCA.crt
ErrorLog "|/usr/sbin/rotatelogs /etc/httpd/logs/www.example.com/www.example.com_ssl_error_log 86400"
CustomLog "|/usr/sbin/rotatelogs /etc/httpd/logs/www.example.com/www.example.com_ssl_access_log 86400" examplessl
</VirtualHost>Regards
Michele MAsè