You need to do a URL redraw that supports most frames, such as struts, spring mvc, which you can configure in your web.xml in the case of a java web application
Please check if you can do with tomcat server.xml below (but I'm not sure about this, rewriting URLs will solve your problem)
Contact: 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
Changes to the .xml server
<Host name="bbstats.localhost" appBase="webapps/myapp" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> <Context path="/myapp" docBase="bbstats" debug="5" reloadable="true" crossContext="true"> </Context>
source share