You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Hulse <mh...@rmcisdc3.rmc.com> on 2003/06/26 13:25:15 UTC

Multiple webapp locations

I haven't read through all of the documentation yet, but while I was
looking at the manager app and trying to understand how it works
I noticed something.  The manager app is not in
/jakarta-tomcat-4.1.24/webapps.
Instead there is a manager.xml that has a context
<Context path="/manager" docBase="../server/webapps/manager" debug="0"
privileged="true">
Does that mean if I put a app.xml in /jakarta-tomcat-4.1.24/webapps I can
serve my app
from directories other than /jakarta-tomcat-4.1.24/webapps?  If so, are
there any advantages
or disadvantages of doing that?

Thanks,
Mike



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


Re: Multiple webapp locations

Posted by Mike Hulse <mh...@rmcisdc3.rmc.com>.
Thanks, that's what I was looking for.

Mike

----- Original Message -----
From: "John Turner" <to...@johnturner.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, June 26, 2003 8:32 AM
Subject: Re: Multiple webapp locations


>
> A Context's docBase can be anywhere, absolute or relative.
>
> The disadvantage to absolute is you may run into OS issues, such as a
> docBase of "C:\webapps" not existing on a Solaris system.  I'm sure the
> gurus can explain other disadvantages.
>
> In my experience, the best thing to do is create separate appBase's for
> each Host, and then use a docBase relative to that appBase, with the
> appBase relative to CATALINA_HOME.  Then it doesn't matter what OS you are
> running, as long as CATALINA_HOME and JAVA_HOME are set and you don't have
> problems with case-sensitivity, and you don't use symbolic links, your
> entire Tomcat hosting environment is essentially portable, server.xml and
> all.
>
> John
>
> On Thu, 26 Jun 2003 07:25:15 -0400, Mike Hulse <mh...@rmcisdc3.rmc.com>
> wrote:
>
> > I haven't read through all of the documentation yet, but while I was
> > looking at the manager app and trying to understand how it works
> > I noticed something.  The manager app is not in
> > /jakarta-tomcat-4.1.24/webapps.
> > Instead there is a manager.xml that has a context
> > <Context path="/manager" docBase="../server/webapps/manager" debug="0"
> > privileged="true">
> > Does that mean if I put a app.xml in /jakarta-tomcat-4.1.24/webapps I
can
> > serve my app
> > from directories other than /jakarta-tomcat-4.1.24/webapps?  If so, are
> > there any advantages
> > or disadvantages of doing that?
> >
> > Thanks,
> > Mike
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



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


Re: Multiple webapp locations

Posted by John Turner <to...@johnturner.com>.
A Context's docBase can be anywhere, absolute or relative.

The disadvantage to absolute is you may run into OS issues, such as a 
docBase of "C:\webapps" not existing on a Solaris system.  I'm sure the 
gurus can explain other disadvantages.

In my experience, the best thing to do is create separate appBase's for 
each Host, and then use a docBase relative to that appBase, with the 
appBase relative to CATALINA_HOME.  Then it doesn't matter what OS you are 
running, as long as CATALINA_HOME and JAVA_HOME are set and you don't have 
problems with case-sensitivity, and you don't use symbolic links, your 
entire Tomcat hosting environment is essentially portable, server.xml and 
all.

John

On Thu, 26 Jun 2003 07:25:15 -0400, Mike Hulse <mh...@rmcisdc3.rmc.com> 
wrote:

> I haven't read through all of the documentation yet, but while I was
> looking at the manager app and trying to understand how it works
> I noticed something.  The manager app is not in
> /jakarta-tomcat-4.1.24/webapps.
> Instead there is a manager.xml that has a context
> <Context path="/manager" docBase="../server/webapps/manager" debug="0"
> privileged="true">
> Does that mean if I put a app.xml in /jakarta-tomcat-4.1.24/webapps I can
> serve my app
> from directories other than /jakarta-tomcat-4.1.24/webapps?  If so, are
> there any advantages
> or disadvantages of doing that?
>
> Thanks,
> Mike
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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