File nagios-business-process-addon-0.9.6-fix_apache2.4.patch of Package nagios-business-process-addon

Index: nagios-business-process-addon-0.9.6/etc/apache-conf.d/nagiosbp.conf.in
===================================================================
--- nagios-business-process-addon-0.9.6.orig/etc/apache-conf.d/nagiosbp.conf.in
+++ nagios-business-process-addon-0.9.6/etc/apache-conf.d/nagiosbp.conf.in
@@ -3,8 +3,13 @@ ScriptAlias @cgiurl@ "@sbindir@"
 <Directory "@sbindir@">
     Options ExecCGI
     AllowOverride None
-    Order allow,deny
-    Allow from all
+    <IfModule mod_authz_core.c>
+      Require all granted
+    </IfModule>
+    <IfModule !mod_authz_core.c>
+      Order allow,deny
+      Allow from all
+    </IfModule>
     AuthName "@apache_authname@"
     AuthType Basic
     AuthUserFile @nagetc@/htpasswd.users
@@ -16,8 +21,13 @@ Alias @htmurl@ "@datarootdir@"
 <Directory "@datarootdir@">
     Options None
     AllowOverride None
-    Order allow,deny
-    Allow from all
+    <IfModule mod_authz_core.c>
+      Require all granted
+    </IfModule>
+    <IfModule !mod_authz_core.c>
+      Order allow,deny
+      Allow from all
+    </IfModule>
     AuthName "@apache_authname@"
     AuthType Basic
     AuthUserFile @nagetc@/htpasswd.users
openSUSE Build Service is sponsored by