mod_proxy_balancer and stickysession

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

we want to use mod_proxy_balancer to load balance a J2EE
application server. So stickysession is set to JSESSIONID.
First I had:

	<Proxy balancer://default>
	  BalancerMember http://host1
	  BalancerMember http://host2
	  BalancerMember http://host3
	  ProxySet stickysession=JSESSIONID
	</Proxy>

	ProxyPreserveHost On
	ProxyPassMatch ^(.*\.jsp)$ balancer://default$1
	ProxyPassMatch ^(.*\.do)$ balancer://default$1

But the session was not sticky. After some TCP dump and reading
a bit more documentation, it seems that mod_proxy_balancer
alters the sessionid by appending ".[number]".

So now I have:

	<Proxy balancer://default>
	  BalancerMember http://host1 route=0
	  BalancerMember http://host2 route=1
	  BalancerMember http://host3 route=2
	  ProxySet stickysession=JSESSIONID
	</Proxy>

	ProxyPreserveHost On
	ProxyPassMatch ^(.*\.jsp)$ balancer://default$1
	ProxyPassMatch ^(.*\.do)$ balancer://default$1

In all likelihood this works better. Is this the right way to
do it?

Regards,
Gerhard

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux