Closed teward closed 9 years ago
I did some fixes below but call of http://10.0.1.20/backuppc/ returns: 403 Forbidden
server { listen 80; server_name xxx.mooo.com;
access_log /var/log/nginx/backuppc.access_log; error_log /var/log/nginx/backuppc.error_log;
location /backuppc { auth_basic "BackupPC admin"; auth_basic_user_file /etc/backuppc/backuppc.users; alias /usr/share/backuppc/cgi-bin; index /index.cgi; }
location ~.cgi$ { gzip off; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/run/fcgiwrap.sock; fastcgi_index BackupPC_Admin; fastcgi_param SCRIPT_FILENAME /usr/share/backuppc/cgi-bin$fastcgi_script_name; } }
Guys, thanks for that! If the config needs to be fixed, please create a pull request.
@plenart If you are having issues with 403 FORBIDDEN check the error logs and see what was accessed, then check permissions and ownership. (This thread here is not a support thread, otherwise.)
@Zloy Thanks for merging the pull req.
you're welcome!
The doc fails to reference the need for
fcgiwrap
in it. (This confusion is apparent in the#nginx
chat room on freenode at the time of this post)