tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roychan <>
Subject Apache Frontend Proxy/URL Rewrite Tomcat
Date Mon, 15 Sep 2008 02:55:47 GMT

Hi Guru,

I am trying to setup an apache in front of a java application(Spring+Struts)
on tomcat so that will route the traffic to

I have tried the mod rewrite rule ^/(.*) http://localhost:8080/app/$1 [P]

but when user try to access a secure area, the Spring bounce the user back
to (instead of port 80 root)

I have also tried the mod proxy to set up
ProxyPass / http://localhost:8080/app
ProxyPassReverse / http://localhost/app

But now the cookie is not set correctly

Then I tried to add proxyport="80" on the tomcat connector, this sorta work,
but it doesn't get rid of the /app/ part.

So what is the correct way to set this up? Please advise!

Thanks in advance!!

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message