Re: NameVirtualHost versus VirtualHost documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Davide

-- 
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux