You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Micael Padraig Og mac Grene <ca...@harbornet.com> on 2002/02/05 01:22:46 UTC
Do different virtual hosts have to have different appBase
values?
[ ] They do.
Reason:
[ ] They don't.
Reason:
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Do different virtual hosts have to have different appBase values?
Posted by Oto Buchta <ta...@neo.cz>.
Dne út 5. únor 2002 01:22 Micael Padraig Og mac Grene napsal(a):
> [ ] They do.
> Reason:
>
> [ X ] They don't.
> Reason: It is not necessary. Why to block this functionality?
Example:
http://www.pig.cz will the same as http://www.pig.net/cz;
http://www.pig.net will the same as http://www.pig.cz/en;
Using request.getServletPath) and request.getRequestURI() I shoul recognize
the default language of the application and the "different languages" should
share whole application including servlet mappings in web.xml. Why not?
But for example http://www.pig.cz/monkey should not be configured and
http://www.pig.net/monkey should. Why not?
If the Tomcat should run only on Operating Systems, it will be good and
sharing of the appBase is not necessary, because OS supports symlinks.
But file systems of the Disk Operating Systems doesn't support symlinks well
known from UNIX, so the sharing is only the solution for this.
--
Oto 'tapik' Buchta
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Do different virtual hosts have to have different appBase values?
Posted by Bojan Smojver <bo...@binarix.com>.
Quoting Micael Padraig Og mac Grene <ca...@harbornet.com>:
> [ ] They do.
> Reason:
>
> [X ] They don't.
> Reason:
I hope you mean docBase?
Don't see why they couldn't point to the same repository of files, provided
that the files aren't open for exclusive use (Windows???). If you run on Unix,
you could just symlink one directory to another and it would probably still be
OK. Provided, of course, you're only reading the files from there. Otherwise,
two applications could be stepping on each other's toes.
There would still be 2 different contexts (i.e. two different applications in
the sense of the Servlet Spec), from what I understand.
Bojan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>