You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hoa Doan <ge...@yahoo.com> on 2007/04/02 22:20:34 UTC

Tomcat 6 web root directory

Hi, I am trying to direct Tomcat to my own web root director, and I know you can do that by changing the host tag in server.xml.  But Tomcat wont read any of my web file unless they are in a folder name 'ROOT'.

Kind of confusing but here is an example of what i did.
    My host tag in server.xml--> <Host name="localhost"  appBase="c:/www.web"...
    Path to my jsp files--> c:/www.web/ROOT

So my question is, is there a way to not have my web file under a folder name 'ROOT' in order for tomcat 6 to pick it up.

 
---------------------------------
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Re: Tomcat 6 web root directory

Posted by Hoa Doan <ge...@yahoo.com>.
Thank you, can you tell me where i can read more on configuring the <Host> tag for Tomcat?

Filip Hanik - Dev Lists <de...@hanik.com> wrote: 
  


Filip

Hoa Doan wrote:
> Hi, I am trying to direct Tomcat to my own web root director, and I know you can do that by changing the host tag in server.xml.  But Tomcat wont read any of my web file unless they are in a folder name 'ROOT'.
>
> Kind of confusing but here is an example of what i did.
>     My host tag in server.xml--> 
>     Path to my jsp files--> c:/www.web/ROOT
>
> So my question is, is there a way to not have my web file under a folder name 'ROOT' in order for tomcat 6 to pick it up.
>
>  
> ---------------------------------
> 8:00? 8:25? 8:40?  Find a flick in no time
>  with theYahoo! Search movie showtime shortcut.
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.24/742 - Release Date: 4/1/2007 8:49 PM
>   


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



 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Re: Tomcat 6 web root directory

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
<Host name="somehost" appBase="c:/www.web">
  <Context path="" docBase="c:/www.web/myapp"/>
</Host>

Filip

Hoa Doan wrote:
> Hi, I am trying to direct Tomcat to my own web root director, and I know you can do that by changing the host tag in server.xml.  But Tomcat wont read any of my web file unless they are in a folder name 'ROOT'.
>
> Kind of confusing but here is an example of what i did.
>     My host tag in server.xml--> <Host name="localhost"  appBase="c:/www.web"...
>     Path to my jsp files--> c:/www.web/ROOT
>
> So my question is, is there a way to not have my web file under a folder name 'ROOT' in order for tomcat 6 to pick it up.
>
>  
> ---------------------------------
> 8:00? 8:25? 8:40?  Find a flick in no time
>  with theYahoo! Search movie showtime shortcut.
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.24/742 - Release Date: 4/1/2007 8:49 PM
>   


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