Re: apache 2.4 virtualhosts

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

 



On Fri, Mar 16, 2012 at 4:08 AM, Brett @Google <brett.maxfield@xxxxxxxxx> 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@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