File collectd-js.apache2.conf of Package collectd
<IfModule mod_cgi.c>
ScriptAlias /collectd-js /srv/www/collectd-js/index.cgi
# Access control:
<Directory "/srv/www/collectd-js">
<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
</IfModule>
</Directory>
<Directory "/srv/www/collectd-js/bin">
Options +ExecCGI
AddHandler cgi-script .cgi
<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
</IfModule>
</Directory>
</IfModule>