How to enable the debug log in NGINX?

nginx
  • The default configuration in nginx.conf file is;

error_log /path/to/logfile-folder/error.log;

  • change the above line with the following;

error_log /path/to/logfile-folder/error.log debug;

  • Restart NGINX.

Leave a Reply