Web hosting FAQ

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

How to install Tomcat 6 on your VPS Oxxus demo

This demo shows you the positioning of tomcat 6 on our VPS server, basic information about the package and apache web server pre-configuration

Multiple Railo sites on single Tomcat host behind Apache

Allows you to use Apache to curb resources that would otherwise be under the pilot of Tomcat (i.e. you can use Apache's mod_rewrite on a .cfm resource where earlier you would have to use Tomcat's rewriter). I find this preferable; I can use the plethora of Apache modules for cfm requests and sanction Tomcat solely to dealing with the Java app side of things. I have just this two shakes of a lamb's tail log set this up on my Ubuntu desktop and currently, unsurprisingly, each situation is still using a separate Railo precedent (each has the full Railo WEB-INF directory in its burgeon). There is, however, a segregate Tomcat host and this is allowing me to pilot my box's recollection more indisputably as recollection appears to be allocated per hostess (Mr Big customary me) - when each of my dozen or so sites was on their own Tomcat presenter, I was continual out of recall extravagantly.

© 2008 Web hosting FAQ