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

后端 未结 9 1214
慢半拍i
慢半拍i 2020-11-30 16:02

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

9条回答
  •  没有蜡笔的小新
    2020-11-30 17:00

    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
    

提交回复
热议问题