]> granicus.if.org Git - icinga2/commitdiff
Add support for Apache 2.4 in the Classic UI config file
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 1 Dec 2014 09:00:05 +0000 (10:00 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 1 Dec 2014 09:00:05 +0000 (10:00 +0100)
fixes #7739

etc/icinga/icinga-classic-apache.conf.cmake

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