Install "fcgiwrap"
Deb system:
apt install fcgiwrap
CentOS:
yum install fcgiwrap
Add to autorun and run:
systemctl enable fcgiwrap systemctl start fcgiwrap
backuppc.conf
server { listen 80; server_name backuppc.artem.services; root /usr/share/backuppc; index cgi-bin/index.cgi; access_log /var/log/nginx/backuppc.access.log; error_log /var/log/nginx/backuppc.error.log; location / { location /backuppc { alias /usr/share/backuppc; } auth_basic "Backup"; auth_basic_user_file /etc/backuppc/htpasswd; location ~ \.cgi$ { include fastcgi_params; fastcgi_pass unix:/run/fcgiwrap.socket; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_USER $remote_user; fastcgi_param SCRIPT_FILENAME /usr/share/backuppc/cgi-bin/index.cgi; } } }