Enabling sticky session mode for Apache/Tomcat load balancing Enabling sticky session mode for Apache/Tomcat load balancing apache apache

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


  1. version numbers of everything = ?
  2. It has to be stickysession=JSESSIONID|jsessionid as Cookie name is uppercase, but path parameter name is lowercase. Supporting path parameters also needs scolonpathdelim=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