If you place your application as ROOT.war , directly under Tomcat's webapps 
folder then Tomcat should load it on the root context / 

But if it's named anything else then it will be at the /<ProjectName>/ context.

I have mine set-up like this on a clean install of Tomcat 5.5 (with no 
additional configuration) and the web application loads on the root context.

If you place an index.jsp directly in the root folder of your project then, 
that takes care of hiding the directory listing and rendering the home page of 
your app.

Also configure welcome-file in your project's web.xml to index.jsp

-Rashmi

----- Original Message ----
From: John Moore <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Tuesday, March 13, 2007 4:12:48 PM
Subject: Re: How does one configure Plain host domain url to run web app?


Rashmi Rubdi wrote:
> I think an application runs on the root context / by default, if it's 
> configured this way in server.xml :
>
> <Engine name="Catalina" defaultHost="localhost">
>    <Host name="localhost" appBase="webapps/projectname">
>         <Context path="" docBase="C:\dev\projects\projectname" 
> reloadable="true" />
>         <Logger className="org.apache.catalina.logger.FileLogger"/>
>    </Host>
> </Engine>
>   
Thanks for replying..

I have that already and it does not help..

Other suggestions..??

John..


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to