httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject Re: [users@httpd] Re: Server default vhost
Date Fri, 04 Nov 2011 10:35:19 GMT
>> > I unsuccessfully tried numerous variations of NameVirtualHost,
>> > VirtualHost and ServerName but apache either serves www.domain.tld
>> > or for all requests.

>Steve Swift wrote:
>> Once you have your Virtualhosts setup, the first one becomes the
>> default for any requests which do not match the
>> ServerName/ServerAlias in any other Virtualhost.

On 04.11.11 08:09, Helmut Schneider wrote:
>But - both www.domain.tld and match the same vhost (at
>least what I observed). I want both to match different vhosts.

then you must define two virtual hosts.



ServerName www.domain.tld

Note that you can not replace those two <VirtualHost> sections, since a 
feature (hidden in virtualhost matching docs) causes the string in 
<VirtualHost> be a hidden server alias for it, therefore each of those 
virtual hosts has a hidden alias of

<VirtualHost> // means hidden ServerAlias

... replacing those would create first (default) host with name  
www.domain.tld and hidden alias which would be the default 
virtual hsot for IP

Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Silvester Stallone: Father of the RISC concept.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message