Monday, June 22, 2015

nginx error log file location

You can find the location of the nginx error log file in your ngnix configuration file:

/etc/nginx# cat nginx.conf
user www-data;
worker_processes  4;

error_log  /var/log/nginx/error.log;

In this case, the error log is in /var/log/nginx/ directory.