tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <has...@webtuitive.com>
Subject Re: Undefined hosts being directed to localhost
Date Sun, 10 Oct 2004 22:31:09 GMT
Robert Hunt wrote:
> On Tomcat 5.0.25; I've got a few <Host/> nodes defined in server.xml:
> 
> <Host name="localhost"...>
> <Host name="abc.com"...>
> <Host name="def.net"...>
> 
> So then, why does a request for host "www.xyz.com" get routed to 
> localhost? Why wouldn't the request get kicked with like a 404 status?

If the name resolution for 'www.xyz.com' points to your system and
there's no explicit host by that name defined, the request goes to
the default host, usually defined as:

     <Engine name="Catalina" defaultHost="localhost" debug="0">

HTH!
-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message