> -----Original Message-----
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
> Sent: Wednesday, May 26, 2010 4:35 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 6.0 always uses default host in multi-host config
> 
> > From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
> > Subject: RE: Tomcat 6.0 always uses default host in multi-host
config
> >
> > with the it set to true, isn't the host header string ignored?
> 
> Yes, it is ignored.
> 
> > The entire discussion is about what happens with
> > useIPVHosts set to true!
> 
> Not entirely; it's also about the merits of setting it to true, and
> when it's advisable or necessary to do so.
> 
> > It seems that on the one hand, you are saying that with
> > useIPVHosts=true, the IP address determines how to process,
> > but that the host header string also controls.
> 
> No, I'm saying that setting useIPVHosts to true precludes the use of
> multiple domains that resolve to the same IP address.
> 
> > Remember, this discussion all started with trying to figure
> > out how useIPVHosts is supposed to work.
> 
> No, it started with how to get IP-based virtual hosting to work.

True, although the OP's lack of knowledge of "how" lead to the need to
ask the question of "why".
Thus my follow-up with a link for how.

> 
> > Please provide a detailed description of how Tomcat function with
> > useIPVHosts set to "true", or provide a link which does.
> 
> I still think the existing wording is sufficient:
> 
> "Set this attribute to true to cause Tomcat to use the IP address that
> the request was received on to determine the Host to send the request
> to."
> 
> However, I presume you'd like additional wording to the effect that
the
> symbolic form of the IP address must be configured as the <Host> name
> or an <Alias> thereof.
> 


Yes, that would be nice, or even a reminder that names won't matter a
bit.  Some folks can be "a bit fick" on such things.

All the posts I've seen inquiring about this feature seem to have missed
that requirement as their starting point.  Answers to some of those
posts lead me to believe that there was some reverse resolution going on
get the correct host (suggestions to add entries to the hosts file,
etc.)  Thus my original confusion and request for clarity.  

Allow me one more attempt at a clear doc?

1) If useIPVHosts=false (default), then the host header name determines
<Host> for processing, or default host of the Engine.
2) If useIPVHosts=true, then IP address of request determines <Host> for
processing, providing the IP is provided as the host name, or <Alias>.
If not found, then default host of Engine applies.
3) Nothing external to server.xml matters to Tomcat in resolving <Host>
for processing.

Does that sound accurate?

Jeff (not the OP)

*******************************  NOTICE  *********************************
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


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

Reply via email to