[CentOS-docs] doc?: TipsAndTricks/ApacheVHostDir

Thu Sep 3 19:16:00 UTC 2009
Ed Heron <Ed at Heron-ent.com>

----- Original Message ----- 
From: "Filipe Brandenburger" <filbranden at gmail.com>
To: "Mail list for wiki articles" <centos-docs at centos.org>
Sent: Thursday, September 03, 2009 12:56 PM
Subject: Re: [CentOS-docs] doc?: TipsAndTricks/ApacheVHostDir


Hi,

On Thu, Sep 3, 2009 at 14:39, Manuel Wolfshant<wolfy at nobugconsulting.ro> 
wrote:
> On 09/03/2009 07:02 PM, Ed Heron wrote:
>> Is my suggestion to add ./vhost.d/ to the Apache configuration as a user
>> installable option not acceptable?
> I still think that it simply duplicates the existing functionality of
> the conf.d folder (which, in my opinion, exists with the very purpose of
> adding new configuration files -- including the definition of virtual
> hosts) and therefore it is useless.

+1 on using conf.d/ directory.

Your Wiki page reads "The issue with [using conf.d/] is that, since
the files in conf.d/ are included with the module configuration files,
the virtual host definitions would come before other options that
could effect them. It is unclear whether the virtual host inherits the
configuration items defined after the virtual host is defined."

That is not true, VirtualHost sections will inherit everything that is
in the main config file, independent of being before or after the
virtual host definition.

There is an evidence of that in Apache documentation:
"Sections inside <VirtualHost> sections are applied after the
corresponding sections outside the virtual host definition. This
allows virtual hosts to override the main server configuration."
(in http://httpd.apache.org/docs/2.2/sections.html)

The only thing that matters on position of VirtualHosts in the config
file is their relative position to other VirtualHosts used to
determine which one of them will be the default, and there I believe
your other page gives two very interesting tips on how to define that.

Cheers,
Filipe
_______________________________________________
CentOS-docs mailing list
CentOS-docs at centos.org
http://lists.centos.org/mailman/listinfo/centos-docs