tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: IP-based virtual hosting with Tomcat(6)
Date Thu, 30 Jul 2009 15:48:16 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill,

On 7/29/2009 10:21 PM, Bill Barker wrote:
> <uma_rk@comcast.net> wrote in message 
> news:2139500381.6699651248905929000.JavaMail.root@sz0016a.emeryville.ca.mail.comcast.net...
>> All the vHosts are to be situated on the same server.
>> The server may be addressed using any loopback address
>> or any non-loopback addressed configured on the NICs of the
>> server.
>>
>> Hence I have the mapping
>>   127.0.0.9 -> vhost1
>>   127.0.0.10 -> vhost 2
>>
>> Let's say that a request arrives at address 10.1.1.1 (configured
>> as an external address of this server).
>>
>> Which vHost would serve this request?
> 
> With the default Connector configuration, whichever vHost matches the Host: 
> header sent by the client.  If useIPVHosts=true in the Connector, whichever 
> vHost matches the DNS name of the address of the IP address that the request 
> was recieved on.

I think you missed Jeffrey's sample configuration, which bound
<Connectors> to specific IP addresses. In this case, there is no default
so a connection to 10.1.1.1 will be refused (unless some other server is
listening there).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpxwMAACgkQ9CaO5/Lv0PAS3wCfc6ofA19JPr/pfjxO5sYoNJgY
jrgAoMGPDUzOhoJBpGNjm5u7h7gn795S
=a5qO
-----END PGP SIGNATURE-----

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


Mime
View raw message