> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Subject: RE: Tomcat 6.0 always uses default host in multi-host config > > OK, to answer my own question on this, useIPVHosts is > essentially a way to save some configuration writing > at the expense of doing a reverse-DNS lookup on every > access, correct?
No. Setting useIPVHosts to true says to use the local IP address rather than the HTTP "host" header value for determining which <Host> to give the request to. > You can do it my way below, and have everything clearly > spelled out It's only clearly spelled out to you, since you implemented. Looks like a lot more work and overhead to me, and certainly no simpler. > or you can use this config trick and let TC manage it for you. It's clearly not a trick. > But in a config setting useIPVHost="true" will only route > it to the correct host if the IP resolves to the host name > or alias Which is exactly what the useIPVHosts setting is documented to do. > Aside from probably only needing to configure one port 80 > connector, and probably allocating fewer resources as a > result, is there any other advantage to the parameter? That seems to be a significant advantage to me. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org