From db7a4b75ae6de887d05f15cdabbb5e55b0e3330b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 21 Jul 2017 09:43:44 -0700 Subject: [PATCH] log the host in nginx logs --- setup/start/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/start/nginx/nginx.conf b/setup/start/nginx/nginx.conf index f61b0fd45..cd4082bcf 100644 --- a/setup/start/nginx/nginx.conf +++ b/setup/start/nginx/nginx.conf @@ -15,7 +15,7 @@ http { # the collectd config depends on this log format log_format combined2 '$remote_addr - [$time_local] ' '"$request" $status $body_bytes_sent $request_time ' - '"$http_referer" "$http_user_agent"'; + '"$http_referer" "$host" "$http_user_agent"'; # required for long host names server_names_hash_bucket_size 128;