Skip to content

Instantly share code, notes, and snippets.

@guycalledseven
Created November 14, 2017 22:50
Show Gist options
  • Save guycalledseven/8f110e16881cf995aabd50db8b563a73 to your computer and use it in GitHub Desktop.
Save guycalledseven/8f110e16881cf995aabd50db8b563a73 to your computer and use it in GitHub Desktop.
nginx
/var/log/nginx/error.log
```
2017/11/14 00:33:30 [crit] 5117#5117: *224 open() "/var/lib/nginx/proxy/3/02/0000000023" failed (13: Permission denied) while reading upstream, client: 93.136.115.2, server: git.nivas.hr, request: "GET /css/semantic-2.2.10.min.css HTTP/1.1", upstream: "http://127.0.0.1:3000/css/semantic-2.2.10.min.css", host: "git.nivas.hr"
```
```
ps aux | grep "nginx: worker process"
nginx 5117 0.0 0.1 125644 6676 ? S 00:30 0:00 nginx: worker process
```
`ls -l /var/lib/nginx/proxy/
sudo chown -R nginx:root /var/lib/nginx/proxy/
ili negdje:
sudo chown -R www-data:root /var/lib/nginx/proxy/
sudo systemctl restart nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment