if your context is under the appBase, then it will autoload it. If your
context is not under the appBase(shared contexts), then you
have to provide the path to it.
I've never tried leaving docBase empty for a context, so I don't know what
path it would look under. I guess webapps could be assumed as the default
directory for defined contexts even if you change the appbase.
so you changed your example to:
<Context path=""
docBase="" debug="1"
reloadable="true">
</Context>
This would take the ROOT context, which is fine if all your virtual hosts
use ROOT as their root context. I have different contexts that are the
default context for their virtual hosts, so I have to provide a docBase to
distinguish between them. My configuration is similar to your original
except that I have a dummy appBase(prevent autoloading) and specify a
absolute path for docBase.
Charlie
> -----Original Message-----
> From: Ryszard Lach [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 8:55 AM
> To: Tomcat Users List
> Subject: Re: Best practice for virtual host configuration
>
>
> On Wed, Jul 24, 2002 at 08:37:50AM -0400, Cox, Charlie wrote:
> >
> >
> >
> > if you change the appBase, then you need to change the
> docBase to be the
> > absolute path.
> >
> > Charlie
> >
>
> Are you sure ? I tried to leave docBase empty and it worked too.
>
> R.
>
> --
> ** Internet Designers S.A., ul. Przedmiejska 6-10, 54-201 Wrocław **
> tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>