httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Bianchi <>
Subject Re: [users@httpd] NameVirtualHost versus VirtualHost documentation
Date Thu, 25 Sep 2008 18:51:27 GMT
Chris Pratt wrote:
> Hello, I have reason to add an additional IP temporarily to a
> Virtual Host. I looked on the latest Apache 2.2 Documentation
> and found that while the <VirtualHost ...> documentation
> allows for multiple IP addresses, the NameVirtualHost
> documentation allows for only one IP:Port combination. It goes
> on to say that the NameVirtualHost and <VirtualHost ...> must
> match exactly as to the parameter supplied.
> I couldn't think of why the <VirtualHost...> would allow it if the
> other directive would not. Does the NameVirtualHost directive
> allow multiple IP:Ports to be specified even though the
> documentation suggests otherwise?

No, NameVirtualHost allow for one ip:port combination (or *:port), but
you can have multiple 'NameVirtualHost' directives.

NameVirtualHost ip1:80
NameVirtualHost ip2:80
NameVirtualHost ip3:80

Obviously you'll need to specify a <VirtualHost ip1:80> and <VirtualHost
ip2:80> and so on.


Yes, Virginia, there is a Santa Claus. He wears red to hide the
bloodstains, and he brings fscked disks to bad sysadmins. That
means all of us, according to Santa Claus.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message