In case someone stumbles about it, I really found the answer.
With Tomcat you can have multiple hosts . Therefore, I configure the host with my application as the default web application. Here is an example:
Add another host to server.xml
<Host name="lilhug.mydomain.com" appBase="lilhug" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"/>
Create multiple files and directories
mkdir $CATALINA_HOME/lilhug mkdir $CATALINA_HOME/conf/Catalina/lilhug.mydomain.com
If you want a Tomcat manager for this host
cd $CATALINA_HOME/conf/Catalina cp localhost/manager.xml lilhug.mydomain.com
Then restart tomcat and you are good. Deploy the lilhug application on / using /manager running on your new host, or copy the war to $CATALINA_HOME/lilhug/ROOT.war
Josh johnson
source share