Re: Apache 2.2: mod_proxy_balancer does not work as documented?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Francis,

I use mod_proxy_ajp to proxy Pentaho, also a Tomcat application. I
think what you are looking for is ProxyPassReverseCookieDomain so the
cookies are set for the right domain.

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreversecookiedomain

Let me know if you want me to share my configuration files.

On Thu, Jan 14, 2010 at 7:28 PM, Francis GALIEGUE <fge@xxxxxxxxxxxx> wrote:
> Hello everyone,
>
> For a production platform, we have plans to migrate to Apache 2.2,
> using mod_proxy_ajp and mod_proxy_balancer instead of mod_jk.
>
> Unfortunately, while the "single Tomcat below" case works with no
> problem, the balancer does not work at all...
>
> Here is the relevant part of the configuration:
>
>        <Proxy balancer://rod-r7>
>                BalancerMember
> ajp://tomcat-rod-r7.admin.one2team.rod:8009 keepalive=On
>                BalancerMember
> ajp://tomcat-cdgdev-r7.admin.one2team.rod:8009 keepalive=On
>                ProxySet stickysession=JSESSIONID nofailover=On
>        </Proxy>
>
>        RewriteEngine On
>        RewriteCond %{REQUEST_URI} ^/servlet/ [OR]
>        RewriteCond %{REQUEST_URI} \.jsp$
>        RewriteRule ^/(.*) balancer://rod-r7/$1 [P]
>
> With this configuration, sessions do not stick :(
>
> So, looking at the documentation again, I saw that there is a
> scolonpathdelim parameter which can be set to On, in order to account
> for the part behind the ';' in the JSESSIONID. And indeed, there is
> one in the generated cookies.
>
> Unfortunately, when I add this to the ProxySet directive above, httpd
> -S says that the parameter is unknown :(
>
> Help :(
>
> --
>
> Francis Galiegue
> ONE2TEAM
> Ingénieur système
> Mob : +33 (0) 683 877 875
> Tel : +33 (0) 178 945 552
> fge@xxxxxxxxxxxx
> 40 avenue Raymond Poincaré
> 75116 Paris
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>



-- 
Follow me on Twitter, http://twitter.com/mdevraj

"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux