diff --git a/en_US/troubleshooting/debug.nginx.md b/en_US/troubleshooting/debug.nginx.md new file mode 100644 index 00000000..21aceb72 --- /dev/null +++ b/en_US/troubleshooting/debug.nginx.md @@ -0,0 +1,15 @@ +# Turn on debug mode in Nginx + +To turn on debug mode in Nginx, please update Nginx config file +`/etc/nginx/conf-enabled/log.conf` (Linux/OpenBSD) or +`/usr/local/etc/nginx/conf-enabled/log.conf` (FreeBSD), append string `debug` +in parameter `error_log` like below: + +``` +error_log ... debug; +``` + +Then restart Nginx service. + +Nginx logs detailed debug info to `/var/log/nginx/error.log` (Linux/FreeBSD) +or `/var/www/logs/error.log` (OpenBSD). diff --git a/html/debug.nginx.html b/html/debug.nginx.html new file mode 100644 index 00000000..d431ec30 --- /dev/null +++ b/html/debug.nginx.html @@ -0,0 +1,40 @@ + + + + + Turn on debug mode in Nginx + + + + +

Turn on debug mode in Nginx

+

To turn on debug mode in Nginx, please update Nginx config file +/etc/nginx/conf-enabled/log.conf (Linux/OpenBSD) or +/usr/local/etc/nginx/conf-enabled/log.conf (FreeBSD), append string debug +in parameter error_log like below:

+
error_log ... debug;
+
+ +

Then restart Nginx service.

+

Nginx logs detailed debug info to /var/log/nginx/error.log (Linux/FreeBSD) +or /var/www/logs/error.log (OpenBSD).

+ + + + \ No newline at end of file diff --git a/html/index.html b/html/index.html index 66907db9..206cad6c 100644 --- a/html/index.html +++ b/html/index.html @@ -230,6 +230,7 @@
  • Turn on debug logging in Fail2ban
  • Turn on debug mode in iRedAPD
  • Log executed SQL commands in MySQL/MariaDB
  • +
  • Turn on debug mode in Nginx
  • Turn on debug mode in OpenLDAP
  • Turn on debug mode in Postfix
  • Turn on debug mode in Roundcube webmail