From d5ebc9dfd6db96215a3b914be21755bb6fc82320 Mon Sep 17 00:00:00 2001 From: Alan Hodgson Date: Tue, 20 Aug 2024 11:23:58 -0700 Subject: [PATCH] Move error_log definition to root scope. refs https://github.com/phusion/passenger/issues/2541 --- image/config/nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/image/config/nginx.conf b/image/config/nginx.conf index 99ba59c1..706a78d4 100644 --- a/image/config/nginx.conf +++ b/image/config/nginx.conf @@ -3,6 +3,12 @@ worker_processes auto; pid /run/nginx.pid; daemon off; +## +# Error logs +## + +error_log /var/log/nginx/error.log; + include /etc/nginx/main.d/*.conf; include /etc/nginx/modules-enabled/*.conf; @@ -38,11 +44,10 @@ http { ssl_prefer_server_ciphers on; ## - # Logging Settings + # Access logs ## access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log; ## # Gzip Settings