I have an Apache 2.2 public web server that I configured to proxy and balance requests for internal web applications deployed on Tomcat 6.0. I use Spring FW + Spring security infrastructure as a technology stack, so the application uses a cookie with jsessionid. The following is a snippet from the Apache configuration:
ServerName abc.mydomain.com
ProxyRequests Off ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On scolonpathdelim=On ProxyPassReverse / balancer://mycluster/ <Proxy balancer://mycluster > BalancerMember http://10.179.40.165:8080/abc </Proxy> <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> Order allow,deny Allow from all </Location>
The problem is that Spring Security will redirect to the wrong session url for any request after a successful login. What can I do to solve the problem? Thanks
Peter
source share