I am new to tomcat. I also haven't succeeded in setup virtual host in Tomcat6. First I tried with tomcat6 standalone mode.
My $Catalina_home: /usr/share/tomcat6
Following is the section to config virtual hosts in my sever.xml:
Code:
<Host name="biocyberman.com" appBase="/home/biocyberman/public_html/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_log." suffix=".txt" timestamp="true"/>
<Context path="" docBase="/home/biocyberman/public_html" debug="0" reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="virtual_log." suffix=".txt"
pattern="common"/>
</Host>
<Host name="mbio.dom" debug="0"
appBase="/home/biocyberman/mbio.dom/webapps"
autoDeploy="true"
unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/home/biocyberman/mbio.dom/logs"
prefix="mbio_access."
suffix=".log"
pattern="common"
resolveHosts="false"/>
<Context path="" docBase="ROOT" debug="0"/>
</Host>
This is not successful. My question is:
Is it possible to config a virtual host that all of its files are put out side of $Catalina_home?