httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: [users@httpd] Can Apache Proxy Balancer gerenate value into cookie ?
Date Wed, 15 Sep 2010 14:35:35 GMT
On 15.09.2010 04:11, FUNASAKI KENJI wrote:
> Hi,
>
> I use Apache Proxy Balancer and Tomcat.
> And I succeeded Load Balancing and Sticky Session.
>
> However, I'd like not to use AP's jvmRoute,
> And I wish that Apach Proxy Balancer would set jvmRoute into user's cookie.
> ( like Amazon Elastic Load Balancing, load balancer-generated HTTP cookies.
>    http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?US_EnableStickySessionsLBCookies.html
 )
>
> For example,
>
> first time, userA access host1 through LB,
> and the LB set JSESSIONID=xxx.jvm1 into user's cookie.
> After that, user continue to connect host1 through LB.
>
> Is it possible ?

Yes. The documentation fo trunk contains an example that also works for 
Apache 2.2. See:

http://httpd.apache.org/docs/trunk/mod/mod_proxy_balancer.html#example

The cookie is set using mod_headers.

Regards,

Rainer

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message