Where are the Nginx Error and Access Log Files Located?

Last updated on

To view the nginx error log and access log files, we can use tail to display the last 200 entries.

sudo tail /var/log/nginx/error.log -n 200
sudo tail /var/log/nginx/access.log -n 200
1 Star2 Stars3 Stars4 Stars5 Stars

Let me know in the comments if this helped. Follow me on Twitter, Facebook and YouTube.

p.s. I increased my AdSense revenue by 68% using AI 🤖. Read my Ezoic review to find out how.

Leave a Reply

Notify of