[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[users@httpd] mod_proxy_balancer cookie issue

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:
        ServerName www.example.com
        ProxyPreserveHost On
        SSLProxyEngine on
        <Proxy balancer://mela>
        BalancerMember route=server00 keepalive=On
        BalancerMember route=server01 keepalive=On
        ProxySet stickysession=ROUTEID nofailover=On
        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 .example.com .example.edu
        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

Michele MAsè