httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?
Date Thu, 31 May 2012 11:57:03 GMT
>--On 31 May 2012 07:02:57 -0400 Eric Covener <> wrote:
>>>This fails because <VirtualHost *:80> does not appear to set
>>>a default when you also have a <VirtualHost>. The
>>>latter always becomes the default.
>>This is sensible/expected, the vhosts with a specific match in the
>>incoming interface are the only candidates.

On 31.05.12 12:36, Alex Bligh wrote:
>OK. So is there any way, in an environment where it is not possible
>to create DNS entries to order, where namevirtualhosts are used,
>to have a default vhost which is different from a vhost whose name
>is the IP address?

btw: we use hostnames that are present in /etc/hosts.

I found it more efficient to create different /etc/hosts (same name, 
different IP) on multiple machines than push httpd.conf through a 
filter that will replace hostname by IP.

Just for sure: * is not acceptable (yet)
Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Where do you want to go to die?" [Microsoft]

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message