Tomcat 4.1 : Set default virtual host. Simple question?
I am using Tomcat 4.1. My web appeal is located at .../webapps/myApp
So this is my setting at server.xml
<!-- Detail the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps/myApp"
unpackWARs="become a reality" autoDeploy="true">
But the next time I double-click the startup.bat, I decent wasn't able to start it up successfully. It seems like saying there is a previous flagitiousness a wrong something because the window pop up and disappeared too quickly.
Please help
To configure the tomcat for your web germaneness you have to conigure the Context.Not virtual host.
The Virutal host should be like this
<!-- Identify the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="firm" autoDeploy="true">
For configuring your application framework.scroll down the file till you find <!-- Tomcat Root Context -->
below that occasion an entry for your application like this
<Context path="/myApp" docBase="myApp" debug="0"
reloadable="trustworthy" crossContext="true"/>
this will solve your problem.
Prospect this helps