httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dessent <br...@dessent.net>
Subject Re: [users@httpd] Having interesting problem with NameVirtualHosts on 1.3.29
Date Wed, 25 Feb 2004 02:49:03 GMT
Glenn Sieb wrote:

> NameVirtualHost 64.32.179.50

This tells Apache to check for name-based vhosts on requests that come
in on IP address 64.32.179.50.

> #<VirtualHost 127.0.0.1>

This tells Apache that the following container will apply to virtual
hosts corresponding to requests that come in on IP address 127.0.0.1. 
Normally this address should correspond to what you have for
NameVirtualHost.

I don't see why people overly-complicate their virtual host setups by
using IP addresses.  Unless you have specific requirements otherwise,
it's usually fine to just specify:

NameVirtualHost *
<VirtualHost *>
  ServerName domain1.example.com
  ...
</VirtualHost>

...and so on.  If you want to do access control based on IP address, use
the normal auth keywords ("Order", "Allow", "Deny", etc.)  The IP
addresses used with vhosts are only there to specify the mechanics of
'which requests come in on which interfaces'.

Brian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message