tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Brownlee" <>
Subject Re: DefaultHost
Date Tue, 29 Apr 2003 08:05:24 GMT
Someone jump in and correct me if I'm wrong.  The host elements, like 
name-base virtual hosts in Apache, use the Host: HTTP header to determine 
which virtual host you're referring to.  Older HTTP 1.0 clients may not 
provide this header and so tomcat has no way to know which host the client 
wanted.  In this case, tomcat uses the default host which may still be wrong 
but, hey, it's worth a try.

I'm assuming to get around this, you would have to define a different 
service for each host, each with connectors bound to thier own address/port 
combinations.  In that case, you would not use the host elements.  However, 
I have not tried this yet.

>From: neal cabage <>
>Reply-To: "Tomcat Users List" <>
>Subject: DefaultHost
>Date: Mon, 28 Apr 2003 16:29:18 -0700 (PDT)
>What is the purpose of defining a host as default host?  I mean, if you 
>have several hosted websites (each tied to its own host) why would you even 
>want to declare one to be the "default"?  Where can I find information on 
>the implications of declaring one to be "default"?
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.

Help STOP SPAM with the new MSN 8 and get 2 months FREE*

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message