Enabling sticky session mode for Apache/Tomcat load balancing
Try removing the marsWAR
part from the ProxyPass directive :
ProxyPass /marsWAR/ balancer://marsBalancer/
If it still does not work, try specifying the session <id>
directly to the ProxyPass directive by adding the following code:
ProxyPass /marsWAR/ balancer://marsBalancer/ stickysession=JSESSIONID
- version numbers of everything = ?
- It has to be
stickysession=JSESSIONID|jsessionid
as Cookie name is uppercase, but path parameter name is lowercase. Supporting path parameters also needsscolonpathdelim=On
[1] See also "Troubleshooting load balancer stickyness" on that documentation page.
[1] http://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html#stickyness_implementation