On 11/03/2011 18:07, Jason Pringle wrote:
> What are the advantages or requirements (if any) for using a value other than 
> localhost, if not using virtual hosts?  And if I read the docs correctly, any 
> value used must be either a valid IP or resolvable via DNS?

You can call it DefaultHost if you like. The only requirement is that
the defaultHost specified in the Engine must be the name of a Host
element contained by that Engine.

> I haven't been able to find any references as to how the value actually gets 
> used by tomcat, only about how to match them up across the configuration 
> entries.

Tomcat matches the Host header in the HTTP request to the host name. Any
that don't match get sent to the default host.

> In case it comes into the picture, we will be putting the tomcat instances 
> behind an httpd reverse proxy, in one case via mod_jk (as we need the sticky 
> session management and load balancing) and in the other likely with 
> mod_proxy/mod_proxy_ajp (as there will be a hardware loadbalancer and no 
> sessions).

It doesn't matter in this case but thanks for providing the information.

Mark

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

Reply via email to