httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan McDuff <>
Subject [users@httpd] multiple ProxyPassReverseCookieDomains
Date Sun, 06 Jan 2013 23:23:07 GMT
I am trying to make two web applications (geoserver), running on servers and in a private subnet, accessible through and
The problem is that the login to the web application uses cookies, and I 
can't figure out how to make the login to _both_ geoservers succeed 
using the proxy_http module.

Is such a setup possible in principle, and can I use several 
"ProxyPassReverseCookiePath"s in the same apache configuration file, if 
they point to the same local path (/geoserver) on the proxied servers?

I tried the following configuration (added towards the end of /etc/apache2/sites-enabled/000-default
in an ubuntu 12.04 server).
Only the login to does _not_ work - I am redirected
to the login page as if the cookie is silently lost.
Everything else is fine: I can access (without login),
and I can access and login to

(If I change the order of geoserver1 and geoserver2 in the configuration, I can login to geoserver2
instead of geoserver1. Login to the first of 
the two geoservers is even possible without any 
ProxyPassReverseCookieDomain directive in the configuration.)

What do I have to change?

Here comes the proxy configuration part:


ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
ProxyPass /geoserver1
ProxyPassReverse /geoserver1

ProxyPassReverseCookiePath /geoserver /geoserver1

ProxyPass /geoserver2
ProxyPassReverse /geoserver2

ProxyPassReverseCookiePath /geoserver /geoserver2


Thank you very much

View raw message