Remove Application Name in URL on Tomcat

Answer 1 :
Simply name your war file root.war and deploy it to tomcat. You probably have to remove the preconfigured ROOT/ directory in tomcat first, if it exists.


Answer 2 :
You need to do URL rewriting which most of framework supports like struts, spring mvc, that you can configure in your web.xml in case of java web app.
Please Check if you can do with tomcat server.xml in below way ( But I am not sure with this, URL rewriting will solve your problem).
Refer: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
etc/hosts to add something like below
   127.0.0.1 mydomain.com
server.xml changes
source : https://stackoverflow.com/questions/13738546/how-to-remove-the-application-name-in-url-tomcat-httpd