You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Pratt <ea...@hughes.net> on 2008/09/25 20:45:31 UTC
[users@httpd] NameVirtualHost versus VirtualHost documentation
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?
Note that using *:80 would be inappropriate in this server
configuration.
Thank you
---------------------------------------------------------------------
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
Re: [users@httpd] Re: NameVirtualHost versus VirtualHost documentation
Posted by Chris Pratt <ea...@hughes.net>.
On Sep 25, 2008, at 12:03 PM, Carsten Wiedmann wrote:
> Chris Pratt schrieb:
>> 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.
>
> Serving the same content on different IP addresses.
> http://httpd.apache.org/docs/2.2/vhosts/examples.html#intraextra
>
> Regards,
> Carsten
>
>
Thanks to all of you. The responses make it clear.
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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
[users@httpd] Re: NameVirtualHost versus VirtualHost documentation
Posted by Carsten Wiedmann <ca...@gmx.de>.
Chris Pratt schrieb:
> 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.
Serving the same content on different IP addresses.
http://httpd.apache.org/docs/2.2/vhosts/examples.html#intraextra
Regards,
Carsten
---------------------------------------------------------------------
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
Re: [users@httpd] NameVirtualHost versus VirtualHost documentation
Posted by Marcin 'Rambo' Roguski <ra...@id.uw.edu.pl>.
> NameVirtualHost directive allow multiple IP:Ports to be specified even
> though the documentation suggests otherwise?
I guess you have proplem understanding what NameVirtualHost actually is.
With this directive you basically ask the Apache to match the vhost from
request made by client- if one does not provide it, Apache uses first available.
IP based vhosts are easier since you can basically assign a domain for ip
and specify it in <VirtualHost> directive.
--
Would you people stop playing these stupid games?!?!?!!!!
---------------------------------------------------------------------
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
Re: [users@httpd] NameVirtualHost versus VirtualHost documentation
Posted by Davide Bianchi <da...@onlyforfun.net>.
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org