Where can I find the error logs of nginx, using FastCGI and Django?

ha22109 picture ha22109 · Nov 10, 2009 · Viewed 595.4k times · Source

I'm using Django with FastCGI + nginx. Where are the logs (errors) stored in this case?

Answer

syava picture syava · Nov 10, 2009

Errors are stored in the nginx log file. You can specify it in the root of the nginx configuration file:

error_log  /var/log/nginx/nginx_error.log  warn;

On Mac OS X with Homebrew, the log file was found by default at the following location:

/usr/local/var/log/nginx