# cat /etc/apache2/conf-enabled/nut.conf
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
<Files upsset.cgi>
Allow from all
# Deny from all
</Files>
</Directory>
Alias /nut /usr/share/nut/www/
<Directory /usr/share/nut/www>
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
</Directory>
sudo a2enmod cgi