I've one apache + 2 apache tomcat servers configured in cluster.
I can't configure sticky session for my apache, and users in server
still get "Session Expired" if apache swich user to other tomcat.
Here is my apache conf:
ProxyPass /balancer-manager !
ProxyPass / balancer://wwwcluster/ stickysession=JSESSIONID|
jsessionid nofailover=Off
<Proxy balancer://wwwcluster>
BalancerMember ajp://127.0.0.1:8009 route=www1 retry=60
BalancerMember ajp://127.0.0.1:8010 route=www2 retry=60
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from localhost
</Location>
AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css
text/javascript application/xhtml+xml application/x-javascript
application/javascript text/xhtml
please for help.
which is same as <distributed/> in web.xml, my problem is session
cookie is not saved on client(user) side in web browser and users
swich randomly between both serwers, and if user is swiched than is
automatic logged out.
I think problem is with apache, because there is no sticky session.
But i don't know how to do it