> From: Ken Bowen [mailto:kbo...@als.com]
> Subject: Do multiple Hosts force multiple instances of webapps?

> Note that they share the appBase.

Which can lead to "interesting" events when updating on the fly.

> When I drop myapp.war in webapps, and observe catalina.out, I see that
> it is started twice. I assume that this is the expected behavior?

Yes; there's a separate classloader created for each <Host>/<Context> 
combination.

> And so then the question is:  In a remote hosting setting 
> like this, what is the purpose of the localhost Host: 
> <Host name="localhost" ....>

You might well ask what's the purpose of the other <Host> with the domain name. 
 You really only need one, and its name is irrelevant, as long as that name 
appears on the defaultHost attribute of the <Engine>.

Multiple <Host> elements are useful when you really are serving separate, 
multiple domains.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to