tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <>
Subject Re: Tomcat 5.5 context.xml, how to configure the Host element
Date Tue, 26 Aug 2008 14:59:34 GMT
jerrycat wrote:

> Thanks,
> just a question here.
> Set the appBase attributes for all your Host elements to different paths
> and make sure that not one is contained in another. For example, if
> you've got two hosts, "localhost" and "", you could
> configure them like that:
> <Host name="localhost" appBase="webapps/localhost" [...]
> and
> <Host name="" appBase"webapps/test" [...] 
> The question:
> If I have a subdomain,, should I define a new Host?
> <Host name="" appBase"webapps/demo.test"

If you want to be different from, then yes.
Otherwise you could define to be an Alias for

> The name after webapps/, which is demo.test, can it be named anyhow?
> for example webapps/mydemotestwebapp

In fact, there is no law that states that the appBase has to start with 
webapps/. You could even use absolute paths to point appBase to a 
directory outside of your CATALINA_BASE.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message