File vnstat-cgi.conf of Package vnstat

Alias /vnstat "/srv/vnstat"

<Directory "/srv/vnstat">
    Options ExecCGI
    AllowOverride None
    AddHandler cgi-script .cgi
    DirectoryIndex vnstat.cgi
    Order allow,deny
    Allow from all
</Directory>