mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
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:
parent
d813bad2f8
commit
143db976ef
@ -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@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user