sudo tail -f /var/log/nginx/error.log
Category: Self-Hosting
sudo tail -f /var/log/nginx/error.log
Stream live Nginx error logs — first place to look when a site returns 502/504 or won't load
Shows Nginx error messages as they happen. When a page returns 502 Bad Gateway or 404, this log tells you exactly why.