mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 00:22:45 -04: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
1 changed files with 13 additions and 4 deletions
|
|
@ -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…
Reference in a new issue