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.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.