Alias /serverstats /opt/collectd-web
ScriptAlias /serverstats/cgi-bin /opt/collectd-web/cgi-bin 
<Directory /opt/collectd-web>
    SSLRequireSSL on
    Options -Indexes
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "serverstats"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    Satisfy all
    AddType application/x-httpd-php .php 
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
</Directory>

