Re: Should name based virtual hosts work when the ServerName is an IP address?

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

 



--On 31 May 2012 07:02:57 -0400 Eric Covener <covener@xxxxxxxxx> wrote:

This fails because <VirtualHost *:80> does not appear to set
a default when you also have a <VirtualHost 192.200.0.1:80>. 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, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
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: users-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