httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] apache 2.4 virtualhosts
Date Fri, 16 Mar 2012 08:35:18 GMT
On Fri, Mar 16, 2012 at 4:08 AM, Brett @Google <brett.maxfield@gmail.com> wrote:
> <VirtualHost *:80>
> # This first-listed virtual host is also the default for *:80
> ServerName www.example.com
> ServerAlias example.com *.example.com
> DocumentRoot /www/domain
> </VirtualHost>
>
> <VirtualHost *:80>
> ServerName other.example.com
> DocumentRoot /www/otherdomain
> </VirtualHost>
>
> Above is not correct, as other.example.com would never have a chance
> to match in the second virtualhost, only the first virtualhost because
> of the wildcard which matches anything that ends in *.example.com, it
> never will even examine the next virtualhost.

I'm surprised to find that serveralias seems to cover up a match for
ServerName, but this isn't a difference in 2.4

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


Mime
View raw message