Skip to content

Commit

Permalink
Properly support Apache 2.2 and 2.4
Browse files Browse the repository at this point in the history
Can be done by using <IfModule> directive.
Tested on fc20, el7 and Wheezy.

refs #6771
  • Loading branch information
Michael Friedrich committed Aug 12, 2014
1 parent d813bad commit 143db97
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions etc/apache/icingaweb.conf.in
Expand Up @@ -3,10 +3,19 @@ Alias @web_path@ "@prefix@/public"
<Directory "@prefix@/public">
Options SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all
# new directive needed in Apache 2.4.3+
#Require all granted

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

SetEnv ICINGAWEB_CONFIGDIR @icingaweb_config_path@

Expand Down

0 comments on commit 143db97

Please sign in to comment.