tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Two apps with different hosts?
Date Mon, 30 Oct 2006 14:16:26 GMT
Per,

> So if we want to have more applications inside webapps and with
> different hosts we get several instances, so our only solution was to
> use a dummy appBase for one of the applications and point out the off
> the apps directly (which if I'm not misinformed can have behavior on the
> libs in the shared directory).
>  
> Is there a "smother" way of doing this? It does feel a little bit
> awkward to do as below.

Why not simply keep your webapps for one host in one directory, and
those for the other in a separate directory. Then, set the "appBase"
attribute as appropriate for each host (note changes):

> <Host name="www.mysite.com"
> appBase="webapps" unpackWARs="false" autoDeploy="false"
> xmlValidation="false" xmlNamespaceAware="false">
> </Host>
>  
> <Host name="preview.mysite.com" appBase="webapps-preview" unpackWARs="false"
> autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
> </Host>

-chris


Mime
View raw message