Add support for Apache 2.4 in the Classic UI config file

fixes #7739
This commit is contained in:
Gunnar Beutner 2014-12-01 10:00:05 +01:00
parent e82b53e576
commit 00885f10d0

View File

@ -12,10 +12,15 @@ ScriptAlias /icinga/cgi-bin "@CMAKE_INSTALL_FULL_LIBDIR@/icinga/cgi"
Options ExecCGI Options ExecCGI
AllowOverride None AllowOverride None
Order allow,deny Order allow,deny
Allow from all <IfVersion < 2.3>
# Order deny,allow Allow from all
# Deny from all # Order deny,allow
# Allow from 127.0.0.1 # Deny from all
# Allow from 127.0.0.1
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
AuthName "Icinga Access" AuthName "Icinga Access"
AuthType Basic AuthType Basic
AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd
@ -28,11 +33,16 @@ Alias /icinga "@CMAKE_INSTALL_FULL_DATADIR@/icinga/"
# SSLRequireSSL # SSLRequireSSL
Options None Options None
AllowOverride All AllowOverride All
Order allow,deny <IfVersion < 2.3>
Allow from all Order allow,deny
# Order deny,allow Allow from all
# Deny from all # Order deny,allow
# Allow from 127.0.0.1 # Deny from all
# Allow from 127.0.0.1
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
AuthName "Icinga Access" AuthName "Icinga Access"
AuthType Basic AuthType Basic
AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd