I'm trying to have virtual hosts in Tomcat 7.0.20
WITHOUT rename everything ROOT AND WITHOUT using Apache http server in front
Steps done so far
put fake domain in windows host file 127.0.0.1 fakedomain.com
Started Tomcat and logged into Host Manager. Add virtual host. Name : fakedomain.com Aliasas : www.fakedomain.com App base: fakedomain Yes to all settings
At this point tomcat creates the app directory and conf directory and setups the manager app for the fake domain.
I copy a WAR file 'Animotest-1.war' to the fakedomain app directory. I can now access my app using http://fakedomain.com/Animotest-1/. Small victory :)
Now I'm trying to set it as my default app
My understanding is that I need to put a ROOT.xml file in the conf/Catalina/fakedomain.com directory with some variation of the following content.
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="C:\Java\apache-tomcat-7.0.20\fakedomain\Animotest-1">
</Context>
The resulting behavior is that tomcat now shows me the ROOT page that comes with with Tomcat not my virtual host app and my app is now 404.
Any clues?