<IfModule mod_cgi.c>
    ScriptAlias /collectd /srv/www/collectd/collection.cgi

    # Access control:
    <Directory "/srv/www/collectd">
        Order allow,deny

        # You might want to change this to give access from
        # different hosts to the collectd statistics, e.g.:
        #
        # Allow from all
        # Allow from 192.168.
        Allow from localhost
        Deny from all
    </Directory>

</IfModule>