httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Oliver.Scha...@unilog.de>
Subject AW: [users@httpd] ProxyPass trouble, WAS: Can't get "stickysession" to work
Date Tue, 10 Jan 2006 12:49:10 GMT
> Isn't that a bit strange? 
normally yes
 
>Why not have stickysession made so it can be set
>to any session identifying cookie, regardless of format?
The problem could  be, that in some situation
-without a special route configured- 
both servers behind the Apache e.g. 2 Tomcats
can send the same sessionid and only with a route
the ID will become unique.*
 
But in general it should be sufficient if Apache catch
at response time the info inside the "Set-Cookie" Header
added for himself with the Host[:port]-part of the worker
from the conf file and it should be unique too to handle
stickyness without a special route.
 
By the way, I patched mod_proxy_balancer.c that Apache
can use now the route out of the session id* and
it worked know.
 
>Or am I expecting too much...
normally not ...
 
>Nevermind, we'll be falling back to pound for loadbalancing appservers, then.
Can you send me the cookie line from which your Browser sends back to the Apache with a ZopeID
?
oliver.schaudt at unilog.de
bye

Oliver
 
* Examples of session ID's:
A Tomcat alone sends
JSESSIONID=5DE657D529A72D80A70C1D3A3E652910
A tomcat with a "route" sends
JSESSIONID=5DE657D529A72D80A70C1D3A3E652910.Tomcat1
 
One of the SAP Web AS behind my Apache sends this:
JSESSIONID=(J2EE184141100)ID184141150DB8638447511222688603End
in this case all Info before the "DB" is the unique identifier.

 

 
 
 
 
bye

Oliver

________________________________

Von: Germer, Carsten [mailto:carsten.germer@desy.de]
Gesendet: Mo 09.01.2006 13:19
An: users@httpd.apache.org
Betreff: RE: [users@httpd] ProxyPass trouble, WAS: Can't get "stickysession" to work



Thanks a bunch, that worked. I puzzled too long on that one, I guess ;)

>Till today stickysession didn't work for me either if i put
>there a route or not.
>When i look in the code of mod_proxy_balancer.c than it seems
>that it is
>only working with a Tomcat which sends a JSESSIONID like
>"<session>.<route>".
>I have the problem that i have a SAP Web Application Server
>which sends JSESSIONID's like "(J2EE<groupNr>)ID<route>DB<session>End"

Isn't that a bit strange? Why not have stickysession made so it can be set to any session
identifying cookie, regardless of format? Or am I expecting too much...
Nevermind, we'll be falling back to pound for loadbalancing appservers, then.

Cheers! /Carsten


>-----Original Message-----
>From: Oliver.Schaudt@unilog.de [mailto:Oliver.Schaudt@unilog.de]
>Sent: Saturday, January 07, 2006 10:32 PM
>To: users@httpd.apache.org
>Subject: AW: [users@httpd] ProxyPass trouble, WAS: Can't get
>"stickysession" to work
>
>
>Hi ,
>
>Last month i made the same thing and after some "forbidden", i
>put the "/" after the "mycluster" and it worked.
>For me it worked this:
>
>ProxyPass / balancer://wpgcluster/ lbmethod=byrequests
>stickysession=JSESSIONID nofailover=On
><Proxy balancer://wpgcluster/>
>  BalancerMember http://10.0.0.1:11800/  smax=15 loadfactor=1
>  BalancerMember http://10.0.0.2:19500/  smax=15 loadfactor=1
></Proxy>
>
>So for you it should be:
>
>Config snip >>
>ProxyPass / balancer://mycluster/ stickysession=_ZopeId nofailover=on
>  <Proxy balancer://mycluster/>
>    BalancerMember http://app1.desy.de:8080/
>    BalancerMember http://app2.desy.de:8080/
>  </Proxy>
><< config snip
>
>Till today stickysession didn't work for me either if i put
>there a route or not.
>When i look in the code of mod_proxy_balancer.c than it seems
>that it is
>only working with a Tomcat which sends a JSESSIONID like
>"<session>.<route>".
>I have the problem that i have a SAP Web Application Server
>which sends JSESSIONID's like "(J2EE<groupNr>)ID<route>DB<session>End"
>
>Greetings
>
>Oliver
>
>
>-----Urspr√ľngliche Nachricht-----
>Von: jslive@gmail.com im Auftrag von Joshua Slive
>Gesendet: Fr 06.01.2006 20:02
>An: users@httpd.apache.org
>Betreff: Re: [users@httpd] ProxyPass trouble, WAS: Can't get
>"stickysession" to work
>
>On 1/6/06, Germer, Carsten <carsten.germer@desy.de> wrote:
>> ReHi everyone,
>> I now tried to do it with ProxyPass and ran into another Problem.
>>
>> Config snip >>
>> ProxyPass / balancer://mycluster stickysession=_ZopeId nofailover=on
>>   <Proxy balancer://mycluster>
>>     BalancerMember http://app1.desy.de:8080/
>>     BalancerMember http://app2.desy.de:8080/
>>   </Proxy>
>> << config snip
>>
>> Works good for requesting http://appfront.desy.de/ but when I try to
>> access http://appfront.desy.de/subpage1.html I get
>> Forbidden
>> You don't have permission to access /subpage1.html on this server.
>> Apache Server at appfront.desy.de Port 80
>>
>> Why doesn't it let me access anything behind "/"? I thought ProxyPass
>> rewrites everything behind "/" to the balancer?
>
>Anything in the error log?
>
>I'd start by adding a trailing slash to mycluster in the
>ProxyPass directive.
>
>Joshua.
>
>

---------------------------------------------------------------------
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