tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnrock <johnpi...@yahoo.com>
Subject RE: setup default webapp in tomcat 6 and apache
Date Fri, 16 Jan 2009 05:19:39 GMT



Caldarale, Charles R wrote:
> 
>> From: johnrock [mailto:johnpiser@yahoo.com]
>> Subject: Re: setup default webapp in tomcat 6 and apache
>>
>> Assuming tomcat is running standalone on port 80, how do I
>> set it up so that when I call
>> http://localhost/index.jsp
>> Tomcat defaults to serving my custom app located at:
>> C:/myApp/web/index.jsp
>> as opposed to what it is doing now, which is serving:
>> C:\Program Files\Apache Software
>> Foundation\apache-tomcat-6.0.18\webapps\ROOT\index.jsp
> 
> This is a much easier question to answer.
> 
> 1) Stop Tomcat.
> 
> 2) Delete the ROOT directory under Tomcat's webapps directory.
> 
> 3) Delete everything in Tomcat's work directory.  (This is overkill, but
> it's easiest this way.)
> 
> 4) Create a file in Tomcat's conf/Catalina/localhost directory named
> ROOT.xml (case matters, even on Windows).
> 
> 5) In the ROOT.xml file, put the following:
> <Context docBase="C:/myApp/web" />
> 
> 6) Restart Tomcat.
> 
> That should be all you need.
> 
>  - Chuck
> ---------------------------------------------------------------------
> 

That did the trick. Thanks so much! Is that the typical way this should be
done?  I can't understand why I could not find the instructions that you
gave me in any other documentation or tutorials I read...Isn't this a very
standard thing to do?



-- 
View this message in context: http://www.nabble.com/setup-default-webapp-in-tomcat-6-and-apache-tp21488197p21492846.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message