tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <>
Subject Re: Need help for server.xml
Date Sat, 27 Oct 2001 10:44:25 GMT
Jean-Luc BEAUDET wrote:

> Sorry if this is the second Post...
> I made a little mistake !
> Hi all,
> I'm newbie with the Tomcat env.
> Runnin' SOLARIS 8 Apache 1.3.20 and ApacheJServ 1.1.2 i had to decide to
> shift to Tomcat 4.0.1 especially for jsp's.
> I'm happy with it but i'd like to:
>     keep my servlets zones as they were already
>     create new ones mostly independant of the $CATALINA_HOME/webapps
> and maybe on different boxes.
> I could easily create my first Context  by modifying the server.xml
> file:
> <!-- Cecile Project Context -->
>         <Context path="/cecile" docBase="cecile" debug="0"
> privileged="true"/>
> But i am bind with $CATALINA_HOME/webapps/cecile dir.
> I'd like to create smth like /MyOwnDir/Mywebapp/jsp/servlets files.

I have a web server which holds 3 virtual hosts on Apache, so I started playing 
with virtual hosts under Tomcat. I think that is a generally good way of 
separating things - if you need virtual hosts and don't find it an overkill. The 
most important atribute for you is "appBase" of a <Host ...> element, allowing 
you to specify the application base directory for all web applications on that 
virtual host.

If, OTOH, you don't need that, you can setup a <Context docBase="ABSOLUTE_PATH" 
...> and load it that way. Or setup symbolic links in $CATALINA_HOME/webapps.


To unsubscribe, e-mail:  <>
For additional commands, e-mail: <>

View raw message