diff -urN pnp4nagios-0.6.21/sample-config/httpd.conf.in pnp4nagios-0.6.21.httpd24/sample-config/httpd.conf.in
--- pnp4nagios-0.6.21/sample-config/httpd.conf.in 2013-03-24 17:25:56.000000000 +0100
+++ pnp4nagios-0.6.21.httpd24/sample-config/httpd.conf.in 2013-07-03 09:32:06.852570024 +0200
@@ -4,8 +4,19 @@
<Directory "@datarootdir@">
AllowOverride None
- Order allow,deny
- Allow from all
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ <RequireAll>
+ Require all granted
+ Require valid-user
+ </RequireAll>
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
+ Order allow,deny
+ Allow from all
+ Require valid-user
+ </IfModule>
#
# Use the same value as defined in nagios.conf
#