Forum Moderators: phranque

Message Too Old, No Replies

Hiding the context name when redirecting from Apache WebServer -Tomcat

         

kadimulam

10:10 am on May 15, 2008 (gmt 0)

10+ Year Member



Hi,

I am using mod_jk in Apache to host my website. On launching [abc.com...] the home page needs to be displayed but currently it is displayed in the URL as [abc.com...]

Can any of you please suggest a way to rewrite this URL as [abc.com....]

In short i want to hide the context(MyApp) in the URL.

Thanks
Kiran

jdMorgan

9:06 pm on May 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You'll need to find the code that redirects to /MyApp, and replace the redirect with a proxy through-put.

Be aware that logs for MyApp will always show the main server as the requestor, unless you take steps to pass proxy-related headers to the back-end and log them there.

Jim