tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tent Pig <tent...@yahoo.com>
Subject RE: Configuring TOMCAT to use different ROOT context
Date Fri, 22 Jun 2007 15:11:22 GMT
--- "Caldarale, Charles R"
<Chuck.Caldarale@unisys.com> wrote:

> Can you use Tomcat's multiple <Host> capability to
> accomplish this segregation?  Each <Host> element 
> has its own appBase, which could point to the
> appropriate DocumentRoot directory for the
> corresponding httpd virtual host.

Well, I tried this.

I put in tomcat's server.xml:

<host name="localhost" appbase="/path/to/documentroot"
/>


This sort of "works", in the sense that now tomcat
looks in

/path/to/documentroot/ROOT/

for JSP files

of course, for my user, this is 'unacceptable', since
she has

/path/to/documentroot/section1/
/path/to/documentroot/section2/
/path/to/documentroot/section3/

and wants to be able to put applicable JSP pages in
each subdirectory, rather than placing them under
/ROOT

(Again, I'm completely clueless here) when I googled
information online, several references were made to
adding a <context> tag within the <host>
declaration... but if I try this, it seems to have no
effect.

Thanks,

Vin



      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

---------------------------------------------------------------------
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


Mime
View raw message