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? You can do it my way below, and have everything clearly spelled out, or you can use this config trick and let TC manage it for you. In my config, if it comes in on an IP, it always goes to the same host. 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, otherwise it goes to the default host. 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?
Please educate me. Jeff (not the OP) -----Original Message----- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Tuesday, May 25, 2010 9:30 AM To: Tomcat Users List Subject: RE: Tomcat 6.0 always uses default host in multi-host config Is there a turtorial on the useIPVhosts attribute and how it is "supposed" to work somewhere? The statement in the <Connector> on-line documentation is woefully insufficient. If you want true default host processing based on incoming IP, you can always set up multiple services: <Service name="firstdomain"> <Connector address="1.2.3.4" port="80" .... /> <Connector address="1.2.3.4" port="443" .... /> <Engine name="firstdomain" defaultHost="firstdomain.com"> <Host name="firstdomain.com" .... "> ..... </Host> </Engine> </Service> <Service name="seconddomain"> <Connector address="5.6.7.8" port="80" .... /> <Connector address="5.6.7.8" port="443" .... /> <Engine name="seconddomain" defaultHost="seconddomain.com"> <Host name="firstdomain.com" .... "> ..... </Host> </Engine> </Service> ******************************* 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