I set the LoadBalancer in Apache 2.4.6 (CentOS), it works well except one thing.
When the user open the alias of Apache server, it anytime redirect the user to another server when click somewhere on website, which is not good for me. I would like to set the Apache in this way:
If someone open the page (and the Apache load the webpage from one server), stay here, and doesn't redirect to another server, if he/she click on somewhere on website.
How can I configure the Apache in this way?
The current configuration is this below:
<Proxy balancer://mycluster>
BalancerMember https://server1:443
BalancerMember https://server2:443
Require all granted
ProxySet lbmethod=bytraffic
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Require host example.org
</Location>
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/
I tried this configuration as well, but still not working as expected:
ProxyPass "/test" "balancer://mycluster" stickysession=JSESSIONID|jsessionid scolonpathdelim=On
<Proxy "balancer://mycluster">
BalancerMember "https://server1:443" route=node1
BalancerMember "https://server2:443" route=node2
Require all granted
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Require host example.org
</Location>
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/