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