Zloy / backuppc_on_nginx

Nginx config to host BackupPC frontend
22 stars 7 forks source link

Add missing req to the doc #6

Closed teward closed 9 years ago

teward commented 9 years ago

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)

heapxor commented 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; } }

Zloy commented 9 years ago

Guys, thanks for that! If the config needs to be fixed, please create a pull request.

teward commented 9 years ago

@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.

Zloy commented 9 years ago

you're welcome!