##
Viewing the nginx error log
vim /usr/local/nginx/logs/error.log
####
2021/11/15 19:26:59 [crit] 14130#0: *4 stat() “/root/code/dist/index.html” failed (13: Permission denied), client: 192.168.111.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.111.3:8001″, referrer: ” http://192.168.111.3:8001/ ”
##
Because I changed the directory where nginx accesses static files, and I used root to modify it
the nginx.conf configuration file should also indicate the user to use:
###
Similar Posts:
- [Solved] Nginx 502Bad Gateway: some static resources cannot be accessed
- Nginx normal user startup configuration error: && springboot-swagger & Unable to infer base url
- Nginx Error: nginx: [emerg] “server” directive is not allowed here in
- [Solved] Nginx Log Error: open() “/opt/Nginx/nginx/nginx.pid” failed (2: No such file or directory)
- [Solved] Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- [Solved] Nginx proxy Timeout: upstream timed out (110: Connection timed out)
- Nginx error 111: connection rejected [How to Solve]
- Solution of 405 not allowed error in nginx
- [Solved] Nginx reverse proxy 502 permission denied