Re: how do I *define* a default virtual host

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

 



On Tue, Sep 15, 2009 at 9:02 AM, robert rottermann <robert@xxxxxxxxx> wrote:
> hi ther,
> I load my VH's from a directory with a number of VH's
>
> is it possible to define which one is the default one?
>
> it seems to select the first in alphabetical order.

I asume you have one config that pulls in the VH's configs via an
include statement. Something like:

Include /etc/httpd/vhosts/*.conf

In that case they are indeed loaded in alphabetical order, as that is
the way the OS sorts files by default.

You can influence that by just having a file named:
000_default.conf
in that directory, which will always get loaded first. Put your
default vhost in that file...

Krist

-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
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