thanx; changing it both apache and tomcat side solved my issue!
I've also followed this blog http://www.felixwu.com/blog/?tag=proxy_ajp
where the simple config i well explained.
Ciao Michele

On Wed, Jul 2, 2008 at 3:15 PM, Rainer Jung <[EMAIL PROTECTED]> wrote:

> Hi Michele,
>
> Michele Mase' wrote:
>
>> According with the documentation, I've tried to setup a load balancer
>> apache2.2.x/tomcat5.5.x; I'm unable to maintain the session.
>>
>> my conf: apache2.2.9/tomcat5.5.26/jdk1.5.0_15,linux redhat5.2
>>
>> apache side:
>> RewriteEngine           On
>> ProxyPreserveHost       On
>> ProxyRequests           Off
>> ProxyVia                Off
>>
>> <Proxy balancer://a>
>>          Order deny,allow
>>          Allow from all
>>          BalancerMember ajp://vmwaretest08:8009 route=vmwaretest08
>> loadfactor=1
>>          BalancerMember ajp://vmwaretest08:8010 route=vmwaretest08
>> loadfactor=1
>>          BalancerMember ajp://vmwaretest08:8011 route=vmwaretest08
>> loadfactor=1
>>
>
> If all of those share the same route, then the balancer has no way of
> distinguishing between them when deciding about stickyness. You need to give
> different routes to the BalancerMembers.
>
>  </Proxy>
>>
>> RewriteRule ^\/(.+)\.jsp(.+)? balancer://a/$1.jsp$2 [P,L]
>>
>> ProxyPass /favicon.ico !
>> ProxyPass /robots.txt !
>> ProxyPass /images/ !
>> ProxyPass /a/ balancer://a/
>> ProxySet balancer://a stickysession=JSESSIONID|jsessionid
>> lbmethod=byrequests nofailover=On
>>
>> tomcat side (server.xml)
>> ...
>>  <Engine name="Standalone" defaultHost="localhost"
>> jvmRoute="vmwaretest08">
>> ...
>>
>
> Here you need to use different routes as well, namely the same ones, you
> configured in the balancer.
>
>  It seems ignoring the parameter stickysession=JSESSIONID|jsessionid and/or
>> the parameter nofailover=On
>>
>> The same env. with apache2.0.x/mod_jk1.2.x works instead.
>>
>> Any suggestion[s]/idea[s]????
>>
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to