backuppc_on_nginx
backuppc_on_nginx copied to clipboard
Wrong path to static
2017/09/27 23:56:04 [error] 5014#5014: *34 open() "/usr/share/backuppc/cgi-bin/backuppc/image/BackupPC_stnd.css" failed (2: No such file or directory), client: 2.93.191.179, server: _, request: "GET /backuppc/image/BackupPC_stnd.css HTTP/1.1", host: "138.68.101.254"
Real path is /usr/share/backuppc/cgi-bin/image/BackupPC_stnd.css
I think need use "location /" instead "location /backuppc". Or another location for static.
My solution is:
location ~\.(css|js|ico|gif|png)$ {
root /usr/share/;
}
My solution is:
location ~\.(css|js|ico|gif|png)$ { root /usr/share/; }
That allows anyone to request all such files from /usr/share
. My also hacky solution is to symlink the cgi-bin
directory into itself with ln -s /usr/share/backuppc/cgi-bin/ /usr/share/backuppc/cgi-bin/backuppc
.