Hi all: I have posted for help yesterday, but I think the post was poorly worded. So I am posting again.
I am using Tomcat 5.5.16 (stand-alone) with JDK 5.0 on Windows XP and trying to setup virtual hosting (to start with two hosts + localhost). Once I start the tomcat server, three host folders are being created inside the work directory. As expected the localhost host has all the webapps that come with tomcat 5.5.16 installation like examples, etc. The work directory also has two other host folders test1.mymachine.com and test2.mymachine.com. There is a single root context for each of these hosts as shown below. The problem is along with a folder for these root contexts tomcat is also serving up all folders present in CATALINA_HOME as contexts. This is happening for both test1.mymachine.com and test2.mymachine.com. Any help is appreciated. Thanks in advance. <Context path="" docBase="c:\websites\test1\webapps\test1" debug="5" reloadable="true" crossContext="true"> ....DB resources </Context> <Context path="" docBase="c:\websites\test2\webapps\test2" debug="5" reloadable="true" crossContext="true"> ....DB resources </Context> Following is the engine tag of my server.xml file <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> <Host name="test1.mymachine.com" debug="0" appbase="c:\websites\test1\webapps" unpackWARs="true" deployOnStartup="true"> <Alias>"test1.mymachine.com"</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="c:\websites\test1\webapps\logs" prefix="test1_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="c:\websites\test1\webapps\logs" prefix="test1_catalina_log." suffix=".txt" timestamp="true"/> </Host> <Host name="test2.mymachine.com" debug="0" appbase="c:\websites\test2\webapps" unpackWARs="true" deployOnStartup="true"> <Alias>"test2.mymachine.com"</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="c:\websites\test2\webapps\logs" prefix="test2_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="c:\websites\test2\webapps\logs" prefix="test2_catalina_log." suffix=".txt" timestamp="true"/> </Host> </Engine> Vamsi.