Remove application name from URL in Tomcat 6 (ROOT application)

Posted on by Kim

E.g. to use www.test.test instead of www.test.test/mmsinbox

In server.xml add the following insite host tag:
On eclipse:

<Context docBase="mmsinbox" path="/mmsinbox" reloadable="true" source="org.eclipse.jst.jee.server:mmsinbox" />
Normal tomcat
<Context docBase="helloworld" path="" reloadable="true" />

Link: The Context Container

0 Responses to "Remove application name from URL in Tomcat 6 (ROOT application)":