Idea: Apache configuration snippets

Remi Collet Fedora at
Mon Feb 23 08:47:02 UTC 2015

Le 22/02/2015 20:08, Adam Williamson a écrit :
> On Sun, 2015-02-22 at 18:51 +0100, Remi Collet wrote:
>> Le 22/02/2015 07:21, Adam Williamson a écrit :
>>> Working on the ownCloud package today, it occurred to me that we 
>>> probably have quite a lot of packages carrying Apache access 
>>> control snippets around, like these:
>> This configuration have a big advantage, it can be upstream ;)
> Sorry, I don't quite get it - can you unpack a bit? What configuration 
> can be upstream? The existing .conf files with all the boilerplate? 
> What upstreams carry those?

Some upstream provides the httpd configuration file.

Ex: ocsinventory [1]
(even if this one is not 2.4 aware despite I have send them the needed
changes months ago...)

Some others projects (perhaps more common) provides some .htaccess files
in their sources tree (these files have to be 2.4 aware, and the httpd
conf file, is "mostly" a merge of all the .htaccess).


1. <IfModule mod_authz_core.c> can be used on all distro,
the reason why I have proposed this one first, (and it have be adopted
in most of our packages).

2. <IfVersion < 2.4> is not usable (upstream) as some distro (debian)
don't provide mod_version by default... :(

3. "Deny from all" (from 2.2) works with 2.4, but only in Fedora/RHEL
because mod_access_compat is enabled (again, not in some other distro...
so the needed of "Require all denied")



More information about the devel mailing list