Need some help on tomcat URL mod_rewrite or mod_jk
- by Redbull Fan
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