You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/08/01 00:16:06 UTC
DO NOT REPLY [Bug 40136] - bug releted to loadbalancing using mod_proxy, mod_proxy_balancer and mod_proxy_ajp
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40136
------- Additional Comments From rpluem@apache.org 2006-07-31 22:16 -------
Ah, now I get it, stupid mine. Of course the JSESSIONID cookies are application
specific. They have a path parameter added; /ga for cookies created by the ga
application, /portail for cookies created by the portail application. So the
application sessions itself remains sticky, but each application can be on a
different Tomcat.
So JSESSIONID cannot be used for stickyness either.
As httpd expects the backend to provide correct routing information I do see the
following solutions:
1. You fix the classes
org.apache.catalina.authenticator.AuthenticatorBase
org.apache.catalina.authenticator.SingleSignOn
to add/substract the jvm route in the same way as
org.apache.catalina.session.ManagerBase
does.
2. You apply the following patch from trunk:
http://svn.apache.org/viewvc?view=rev&revision=417238
and use the following configuration:
Header add Set-Cookie "MYCOOKIE=SOMEVALUE.%{BALANCER_WORKER_ROUTE}e;path=/;"
env=tomcat
<Proxy balancer://tomcats/>
BalancerMember ajp://AppServer2:8882 route=tc2
BalancerMember ajp://Appserver3:8883 route=tc3
</Proxy>
<Location /portail/>
ProxyPass balancer://tomcats/portail/ stickysession=MYCOOKIE
Order Deny,Allow
Allow from all
SetEnv tomcat 1
</Location>
<Location /ga/>
ProxyPass balancer://tomcats/ga/ stickysession=MYCOOKIE
Order Deny,Allow
Allow from all
SetEnv tomcat 1
</Location>
But this configuration sets the cookie MYCOOKIE on EVERY response that comes
from Tomcat
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org