httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Longman <>
Subject Re: [users@httpd] requesting help w/ mod_proxy and tomcat
Date Thu, 03 Oct 2002 15:11:20 GMT
On Thu, 2002-10-03 at 08:07, i.t wrote:
> msg Mittwoch, 2. Oktober 2002 12:04 by Sundar Narasimhan:
> > We're using ProxyPass/ProxyPassReverse, but for some reason Tomcat (on
> > the internal server) sees each request as coming from a different
> > browser (or something).
> >
> > Is there any way I can debug this? (is mod_proxy the right thing to be
> > using here?)

ProxyPass/ProxyPassReverse work well for this sort of thing.  the
problem isn't related to mod_proxy, its because the HOSTNAME is probably
different.  the browser is thinking its connecting to,
and tomcat thinks its running as, so when tomcat
creates a cookie, its giving the server name it knows, which doesn't
match what the browser is using, so the browser doesn't resend it.  make

tomcat is rather annoying in that  you can only set a proxy name at the
Connector level, proxyPort and proxyHost i think are the attributes. 
your two options afaik are to either:

1) set up a connector specifically for this site, and use
proxyPort/proxyHost to reconfigure the cookie going back to the browser
2) use encoded URLs everywhere for session management, either forgetting
about the cookie or disabling it.

its too bad tomcat does't allow proxy info at the Host level, it only
makes sense to me; you ProxyPass to a host right?  not a stupid
connector.  but until they fix their stuff up, its a bit of a kludge
imho to work around.

> Well -you're probably using Apache 1.3.2x
> There is a far better mod_proxy implementation in httpd2.0.42;
> You may also look into the archive at
> Furthermore there is something on the squid site what is probably of interest 
> for you.
> see
> and have a look to the icap project
> what is rewriting URLs on the fly.
> Please let me know if you have any success.
> BTW: the spam filter what I've setup on my mailserver didn't allow direct 
> email to you:
> <>: host[] said: 550 Mail
>     from refused by blackhole site
> Regards
> i.t
> -- 
>  . ___
>  |  |  Irmund     Thum
>  |  |   
> ---------------------------------------------------------------------
> 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:

    Be Developer ID: 5852

View raw message