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] Apache Proxy Balancer cannot use other parameter except JSESSIONID for stickysession.
Date Wed, 15 Sep 2010 14:33:21 GMT
On 15.09.2010 04:02, FUNASAKI KENJI wrote:
> Hi,
>
> I have a question.
> Can Apache Proxy Balancer use other parameter except JSESSIONID for stickysession ?
>
> For example, like following httpd.conf.
>
> -----------
> ProxyPass / balancer://mycluster/ lbmethod=byrequests timeout=5 stickysession=TESTID
nofailover=On
> ProxyPassReverse / balancer://mycluster/
>
> <Proxy balancer://mycluster/>
> BalancerMemeber host1 route=123
> BalancerMemeber host1 route=456
> </Proxy>
> ------------
> I tried this, and at backend,
> AP1 set TESTID=xxx.123 into cookie,
> AP2 set TESTID=xxx.456 .
>
> this cannot make stickysession.
>
> However, I changed it from TESTID to JSESSIONID,
> it succeeded stickysession.
>
> So I think Apache Proxy Balancer use only JSESSIONID, is it true ?

No, it is expected to work the way you tried.

Which exact version of Apache are you using?

You can log

- the value of the "TESTID" cookie
- the value of the five environment variables describeson the page

http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html#environment

by adding them to the log format of your access log.

In addition you can increase the Apache LogLevel to debug, which makes 
the proxy module log quite verbosely. It should be easy to find the root 
problem using the additional output.

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