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 @@ + + +
+ +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).