Caldarale, Charles R wrote:
> 
>> From: johnrock [mailto:johnpi...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to