Re: Name based virtualhosts with default

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

 



2013/10/1 Yehuda Katz <yehuda@xxxxxxxxxx>:
> On Tue, Oct 1, 2013 at 10:02 AM, Redalert Commander
> <redalert.commander@xxxxxxxxx> wrote:
>>
>> Our configuration has the typical include of
>> "/etc/httpd/conf.d/*.conf", it is here that the vhosts are defined in
>> separate files. Should the default also be placed in here or does it
>> have to be defined at the end of the httpd.conf (master) configuration
>> file?
>>
>> It is currently my understanding that I should place it at the bottom
>> of httpd.conf; so to be sure it is that last that is matched, but I
>> would like to hear from someone with more knowledge and/or experience
>> about apache than myself.
>> I would prefer it to be placed in the conf.d folder if possible.
>
>
> It might depend on which distribution you are using.
> Some systems (Debian, for example) will always load the config files in
> alphabetical order, so the efault vhost is usually named 000-default to
> ensure it loads first.
> I don't think you can guarantee that on other systems.
>
> If you do decide to include the default vhost in the httpd.conf, you would
> need to put it before the line that includes conf.d
>

I decided to include it in the httpd.conf before the include
directive, just to be sure.
Thanks for you input.

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