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 ----------------------------- [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to