Is it possible to bind Tomcat to one specific IP address on a multi-homed host (for virtual hosting)?
Ignacio J. Ortega Yes, from version 3.1 you can a virtual host bind to one of the ip adresses owned by the machine, if you add something like the following to server.xml:
<Host name="127.0.0.1" > <Context path="" docBase="webapps/examples" /> <Context path="/examples" docBase="webapps/ROOT" /> </Host>as you can see you can put a IP adress for the Virtual Host name, ergo you can have a Virtual Host pointed to any particular IP configured in your machine.
[Are you sure this works if the URL contains the host+domain name instead of the IP#? -Alex]