Hi Guru,
I am trying to setup an apache in front of a java application(Spring+Struts)
on tomcat so that
http://www.somedomain.com/ will route the traffic to
http://www.somedomain.com:8080/app/
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 http://www.somedomain.com:8080/app/ (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: http://www.nabble.com/Apache-Frontend-Proxy-URL-Rewrite-Tomcat-tp19486621p19486621.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|