<IfModule mod_cgi.c>
ScriptAlias /collectd /srv/www/collectd/collection.cgi
# Access control:
<Directory "/srv/www/collectd">
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require all granted
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny
Allow from all
</Directory>