New Apache/nagios config for xenial (16.04)
authorAlex Dehnert <alex@dehnerts.com>
Sun, 5 May 2019 09:21:59 +0000 (05:21 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Sun, 5 May 2019 09:21:59 +0000 (05:21 -0400)
apache2.conf

index 0affebd8cf2cb95cffa8a48171f6f30f35e2c842..f0f8b2f3c1b224d20025a85ddd762295f5ba53b2 100644 (file)
@@ -33,8 +33,16 @@ Alias /nagios3 /usr/share/nagios3/htdocs
        DirectoryIndex index.php index.html
 
        AllowOverride AuthConfig
-       Order Allow,Deny
-       Allow From All
+
+
+    <IfVersion < 2.3>
+        Order Allow,Deny
+        Allow From All
+    </IfVersion>
+
+    <IfVersion >= 2.3>
+        Require all denied
+    </IfVersion>
 
        AuthName "Nagios Access"
        AuthType Basic