8đź‘Ť
âś…
So your nginx is running as www-data
inside /root
… That can’t be good. /root
is not accessible by normal users (unless you chmod +x
it, which is a bad idea).
You should move your data outside of it, in /srv/http
, /var/www
or /home/whatever
, but not in /root
.
👤Schnouki
2đź‘Ť
If your nginx is not in production, can you add “error_log /path/to/log debug;” then try to access one of your static content. You’ll see what nginx is trying to load in the debug file. It should be useful.
Don’t hesitate to post its content here to help us understand.
👤Toniob
Source:stackexchange.com