tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Gary Dale)
Subject Re: Multiple virtual host with individual webapp dirs , one tomcat
Date Thu, 19 Jul 2001 20:50:00 GMT
Actually, if you put your hosts in webapps, Tomcat will automatically 
create contexts for them, However, these will be in the form This is essentially the same as your 
.war suggesting.

Creating virtual hosts out of them is a different kettle of fish. 
However, it seems that a simple shell script would do the trick - just 
find each directory and generate a virtual host entry for it.

Will England wrote:

>On Wed, 18 Jul 2001 wrote:
>>Is it possible to give every single vhost his own webapp-dir where
>>developpers can put
>>new contexts, which are automatically added after restarting tomcat so no
>>editing of server.xml
>>is required.
>If you want to *change* the code in a context, you can do this just by
>adding the new class files under the WEB-INF directory.
>If you want to add a *new* context that didn't already exist, you have to
>edit the server.xml file.
>One other option is to have the developers jar up the whole application
>and deploy it to TOMCAT_HOME/webapps as a .war file.
>Then, no changes are needed to server.xml; tomcat just reads and expands
>the .war file and runs with it.  Never did this, not sure how well it

View raw message