Last active
May 29, 2019 02:05
-
-
Save yuehhua/7416c02133b23849c33a4f7dde8f0a61 to your computer and use it in GitHub Desktop.
benga.conf: /etc/nginx/sites-enabled/benga.conf, error.log: /var/log/nginx/error.log, ls: ls -al /var/www/benga/static/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name 54.210.169.179; | |
charset utf-8; | |
root /var/www/benga; | |
index index.html; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
location /static/ { | |
alias /var/www/benga/static/; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
2019/05/29 01:26:59 [error] 31804#31804: *12 open() "/var/www/benga/static/page.css" failed (13: Permission denied), client: 59.120.22.19, server: 54.210.169.179, request: "GET /static/page.css HTTP/1.1", host: "54.210.169.179" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total 36 | |
drw-rw-rw- 5 www-data www-data 4096 May 27 08:25 . | |
drwxr-xr-x 3 www-data www-data 4096 May 29 01:44 .. | |
drw-rw-rw- 6 www-data www-data 4096 May 27 08:25 admin | |
-rw-rw-rw- 1 www-data www-data 9805 May 27 08:25 dropzone.min.css | |
drw-rw-rw- 2 www-data www-data 4096 May 27 08:25 frontend | |
-rw-rw-rw- 1 www-data www-data 1920 May 27 08:25 page.css | |
drw-rw-rw- 7 www-data www-data 4096 May 27 08:25 rest_framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root 31977 0.0 0.0 140628 1512 ? Ss 02:03 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; | |
www-data 31981 0.0 0.1 143300 6160 ? S 02:03 0:00 nginx: worker process | |
www-data 31982 0.0 0.1 143300 6160 ? S 02:03 0:00 nginx: worker process |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment