I would like to share balancers accros several vhosts : <Proxy balancer://cluster> BalancerMember ajp://192.168.15.196:8538 BalancerMember ajp://192.168.15.197:8538 </Proxy> <VirtualHost xxx.xxx.xxx.xxx:80> ServerName my.firstsite.com <Location /> ProxyPass balancer://cluster/bm stickysession=jsessionid nofailover=On </Location> </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx:80> ServerName my.secondsite.com <Location /> Proxypass balancer://cluster/best stickysession=jsessionid nofailover=On </Location> </VirtualHost> But, then, if I use the balancer-manager to see if the stickysession parameter is properly set, it does not. If I submit it with the balancer-manager interface, it does not always keep it. I feel that stickysession should be a balancer attribute, not a Proxypass one. I saw the same question 3 weeks ago on comp.apache.devel with no answer... Is there a way to do it? François.
Does it work if you use the following configuration? <Proxy balancer://cluster> BalancerMember ajp://192.168.15.196:8538 BalancerMember ajp://192.168.15.197:8538 ProxySet stickysession=jsessionid nofailover=On </Proxy> <VirtualHost xxx.xxx.xxx.xxx:80> ServerName my.firstsite.com <Location /> ProxyPass balancer://cluster/bm stickysession=jsessionid nofailover=On </Location> </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx:80> ServerName my.secondsite.com <Location /> Proxypass balancer://cluster/best stickysession=jsessionid nofailover=On </Location> </VirtualHost> Please keep in minds my comments regarding session routes at http://issues.apache.org/bugzilla/show_bug.cgi?id=38357#c4 before trying.
Please add the ProxySet directive to the documentation :). This does not solve my problem exposed in #38357. Stickysession is not working.
(In reply to comment #2) > Please add the ProxySet directive to the documentation :). Yes, I know that it is missing :-) > > This does not solve my problem exposed in #38357. Stickysession is not working. Have you added a session route to your jsessionid as mentioned in http://issues.apache.org/bugzilla/show_bug.cgi?id=38357#c4? If yes, and it still does not work please add the log outputs to #38357 as you did in http://issues.apache.org/bugzilla/show_bug.cgi?id=38357#c3.
Using the jvmRoute in tomcat solved it. Thank you for your help. So, just a documentation problem :). François.