I want to configure Apache Web Server to fulfill the following requirement:
- Access to server1 during operation.
- Access to server2 only when server1 is not responding. When server1 answers, start server 1 again.
To do this, I tried setting up Apache Web Server (2.2) using mod_proxy_balancer. My problem is that session stickiness seems to be enabled by default. When server1 does not respond, the balancer is redirected to server2, but when server1 is restored, the balancer does not access server1 until I clear the sessions in my browser.
My balancing configuration:
ProxyPass /test balancer://mycluster <Proxy balancer://mycluster> BalancerMember server1-url retry=10 loadfactor=100 BalancerMember server2-url status=+H retry=10 </Proxy>
Is it possible to disable stickiness?
Thanks in advance.
source share