From 4b9909002a72e1f552d57d28ed3152a1a81f4435 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 28 Oct 2022 18:10:30 +0800 Subject: [PATCH] update: perf nginx access log format --- nginx/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b0cf953..9270db3 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -10,6 +10,9 @@ events { } http { + log_format access '[$time_iso8601] $remote_addr -> $scheme://$host - "$request"' + ' -> ($status) ↑$request_length ↓$bytes_sent {$http_user_agent}'; + access_log /var/log/nginx/access.log access; include /etc/nginx/mime.types; include /etc/nginx/kms.conf; }