Properly support Apache 2.2 and 2.4

Can be done by using <IfModule> directive.
Tested on fc20, el7 and Wheezy.

refs #6771
This commit is contained in:
Michael Friedrich 2014-08-12 09:56:43 +02:00
parent d813bad2f8
commit 143db976ef
1 changed files with 13 additions and 4 deletions

View File

@ -3,10 +3,19 @@ Alias @web_path@ "@prefix@/public"
<Directory "@prefix@/public">
Options SymLinksIfOwnerMatch
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require all granted
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny
Allow from all
# new directive needed in Apache 2.4.3+
#Require all granted
</IfModule>
SetEnv ICINGAWEB_CONFIGDIR @icingaweb_config_path@