[ale] Can't use public IP on local network

Richard Bronosky Richard at Bronosky.com
Tue Apr 14 09:40:51 EDT 2009


You can have Apache answer for thousands of different name based
virtual hosts on a single IP. What you cannot do is have a router
assign more than one hostname to a single IP. For that you need to
other methods I describe.

.!# RichardBronosky #!.



On Mon, Apr 13, 2009 at 6:56 PM, Kenneth Ratliff <lists at noctum.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Apr 13, 2009, at 2:00 PM, Richard Bronosky wrote:
>> I see that you mention VirtualHosts. The weakness here is that each
>> "machine" [interface/IP] can only be known by one name. Therefore,
>> this does not help you with "name based virtual hosts" (VirtualHost
>> *:80; ServerName myhost.mydomain) if you have multiple ServerNames
>> that you would like to go to a single IP.
>
> Sure you can, just need a NameVirtualHost directive, unless I'm
> totally misunderstanding you. But I can have apache answer for 30
> different domains if I want, all on the same IP.
>
>
>> *I believe* that /etc/hosts is for name resolution that is unique the
>> the client on which the /etc/hosts file resides (read: not common to
>> the rest of the network). When you have a name resolution need that
>> should apply to all/many clients, it should be maintained in some
>> centralized manner. /me steps down from soapbox
>
> Correct, hosts files are only locally significant.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (Darwin)
>
> iEYEARECAAYFAknjwyQACgkQXzanDlV0VY7y/gCg2dr5HIq13QKID+NHYjDSCJ8R
> ZiYAmwVLwlybNXCAhD+/ZuuUrMW6+q2z
> =YNmP
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>


More information about the Ale mailing list