Re: Virtualhost config file precedence

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

 



On Mon, Jul 13, 2009 at 10:40 AM, howard chen<howachen@xxxxxxxxx> wrote:
> I am using Ubuntu 9.04, using the build in vhost management scripts
> such as a2ensite/a2dissite.
>
> I am also using namebased virtualhost. (NameVirtualHost *:80), which I
> have serveral vhost scripts under /etc/apache2/sites-available, in the
> format such as...
>
> <VirtualHost *:80>
>
> DocumentRoot ...
> ServerName www.example1.com
>
> </VirtualHost>
>
>
>
> The problem is:
>
> All the vhosts are listening on the same IP, but if I type my server
> IP without specifying the Host header, the vhost start with letter "a"
> will be a high priority then "b".

The first-listed one is the default.   Add numbers in the front of
your Include'd config files if you want to change the order they're
processed in.


-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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