From 9f069a42ac44e7e166d26e652c677050c4c01cea Mon Sep 17 00:00:00 2001 From: Scott Dutton Date: Wed, 9 Jun 2021 20:51:08 +0100 Subject: [PATCH] Improve logging Currently its almost impossible to know which host actually handled the request, this extra variable logs the upstream server too --- nginx.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index 66f346c..a4adcfa 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -108,7 +108,8 @@ gzip_types text/plain text/css application/javascript application/json applicati log_format vhost '$host $remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' - '"$http_referer" "$http_user_agent"'; + '"$http_referer" "$http_user_agent" ' + '"$upstream_addr"'; access_log off;