diff options
Diffstat (limited to 'collectd-httpd.conf')
-rw-r--r-- | collectd-httpd.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/collectd-httpd.conf b/collectd-httpd.conf index a9fe956..1117157 100644 --- a/collectd-httpd.conf +++ b/collectd-httpd.conf @@ -6,7 +6,15 @@ Alias /collectd/ /usr/share/collectd/collection3/ <Directory /usr/share/collectd/> AddHandler cgi-script .cgi DirectoryIndex bin/index.cgi + <IfModule mod_authz_core.c> + # Apache 2.4 + Require local + </IfModule> + <IfModule !mod_authz_core.c> + # Apache 2.2 Order Deny,Allow Deny from all Allow from 127.0.0.1 + Allow from ::1 + </IfModule> </Directory> |