httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: [users@httpd] unexpected behaviour of default host
Date Tue, 29 Dec 2015 23:31:11 GMT
On Tue, Dec 29, 2015 at 8:49 PM, Hajo Locke <Hajo.Locke@gmx.de> wrote:
>
>
> Am 29.12.2015 um 20:07 schrieb Eric Covener:
>>
>> On Tue, Dec 29, 2015 at 2:05 PM, Hajo Locke <Hajo.Locke@gmx.de> wrote:
>>>
>>> In Apache 2.2 we used additional "Servername *", but with 2.4 it is not
>>> allowed to use wildcards with Servername-Directive.
>>
>> I think it was treated as a literal * in 2.2. It's just a shorter/more
>> confusing version of non.existing_host.noTld.
>>
> Using a hostname which is already declared in same conf is not less
> confusing.

How about using an/the IP[:port] address?
That's how the default works actually, selecting the first VirtualHost
listening on the IP[:port] the connection comes from.
Since <VirtualHost *> may serve any request on any IP[:port], choose
any, or indeed "0.0.0.0".

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message