Need some help on tomcat URL mod_rewrite or mod_jk
Posted
by
Redbull Fan
on Pro Webmasters
See other posts from Pro Webmasters
or by Redbull Fan
Published on 2011-02-17T09:07:41Z
Indexed on
2011/02/21
23:34 UTC
Read the original article
Hit count: 237
apache
|mod-rewrite
I am trying to remove the context name from the url of my server.
Current URL - http://www.domainname.com/MyApp/
What I need to make is to make it avaialble at -
www.domainname.com/
So it is only going to host one main app and that needs to be displayed when we open www.domainname.com/ on browser.
I have already tried couple of things like below -
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/(Context/.*)$
RewriteRule ^/(.*)$ /Context/$1 [P,L]
OR
redirect permanent /MyApp/ abcd://domainname.com
OR
Using JKMount -
JkMount /MyApp/* ajp13
JkMount /MyApp* ajp13
OR
Deploy war file to ROOT of tomcat and make relevant chagnes in web and server.xml All of these aren't working and I keep getting a intenal error. I need a way to basically trim the tomcat URL to make short.
Thanks, Andy
© Pro Webmasters or respective owner