From fe7baed7f96077f8f945756d7c2422839898e309 Mon Sep 17 00:00:00 2001 From: Luc Date: Tue, 7 Dec 2021 10:58:22 +0100 Subject: [PATCH] log to file, use the log_format --- config/root/etc/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/root/etc/nginx/nginx.conf b/config/root/etc/nginx/nginx.conf index c9ef012..3393b77 100644 --- a/config/root/etc/nginx/nginx.conf +++ b/config/root/etc/nginx/nginx.conf @@ -32,7 +32,7 @@ http { add_header X-XSS-Protection "1; mode=block"; log_format host '$remote_addr - $remote_user [$time_local] "[$host] $request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"'; - access_log /dev/stdout; + access_log /var/log/acces.log host; error_log stderr; gzip on;