httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: [users@httpd] stickysession at mod_proxy_balancer
Date Wed, 18 Jan 2006 14:06:04 GMT
Hi dom, 
so than it seems that the definitions which you had in your apache configuration don't match
your session cookie
Can you use "tamper data"

or iehttpheaders to see whar you have in your headers sent by the server when he sends you
the cookie [the line sith "set-cookie"] . Upon this set-cookie your Browser should send back
every time a headerline beginning with "cookie".
If this is the case than the cookie should look like
12345678.A_ oder 12345678.B_ . Otherwise you have to change your configuration
If you don't want to run in a timeout or if you have a firewall inbetween the apache and the
backend web server than you can add "keepalive=on" behind the route.


Von: dom []
Gesendet: Mi 18.01.2006 12:27
Cc: Schaudt, Oliver
Betreff: Re: [users@httpd] stickysession at mod_proxy_balancer

Hi Oliver,

1. no, i don't.. thats the strange thing.. just see in the accesslog:
[debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising URL
[debug] mod_proxy_balancer.c(803): proxy: Entering byrequests for BALANCER
[debug] mod_proxy_balancer.c(396): proxy: BALANCER (balancer://prod) worker
( <> ) rewritten to
[debug] mod_proxy.c(736): Running scheme balancer handler (attempt 0)

2. don't really understand your question. my 'backendservers' produce a cookie
with teh attribute 'sessionkey' and use this for the own
sessiondeclaration, so
i thought to use that one. i (the webserver) just added ".A_" at the
end of the
sessionkey for identify the 'route' to apache, but i guess thats not the only
thing i need to do? i can produce every cookie-attribute you like, thats not
the problem.. whats jvmroute? i'm not using tomcat, we use a self written

i thought it should be easy: a have allready a sessionkey, so thats nice. then
the backendwebserver now which server he is, so he set another attribute, and
add this to the sessionkey (sessionkey.route) and this route is
definied on the
BalanceMember.. but i guess i missunderstand the topc.. :-(



> Hi dom,
> 1. Do you see some lines like "proxy: BALANCER: Found value
> 12721798.A_ for stickysession sessionkey" in the "error_log" ?
> 2.Do you have set your session-identifier nameinside your servers
> behind Apache to "sessionkey" and the route alias jvmroute to your
> "A_" and "B_" ? If not than it won't work.
> Bye
> Oliver
> ________________________________
> Von: dom []
> Gesendet: Di 17.01.2006 16:23
> An:
> Betreff: [users@httpd] stickysession at mod_proxy_balancer
> hi,
> i'm using apache 2.2 because of the balancing module, but i can't
> figure out why
> the 'stickyness' doesn't work.
> -snip-
> LogLevel debug
> ProxyPass / balancer://prod/ stickysession=sessionkey nofailover=On
>  <Proxy balancer://prod>
>   BalancerMember <>  <>
>   BalancerMember <>  <>
>  </VirtualHost>
> -snip-
> the sessionkey-coockie is set to something like 12721798.A_
> after a few clicks (depends from 2 to 15) i get connectet to the
> second Member,
> but don't see why! any ideas?
> when i have a look at the logfile, i never see some information about the
> coockie or so.. :-(
> thanks in advance
> dom

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message