From 60df38c367aaa763f68ccb62073932bcf960136f Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 15 Mar 2023 21:00:23 +0100 Subject: [PATCH] configuration/common: Add virtual host to access log --- configuration/common/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configuration/common/default.nix b/configuration/common/default.nix index 8fd421b..c4557cb 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -79,7 +79,10 @@ log_format combined_anon '$remote_addr_anon - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; - access_log /var/log/nginx/access.log combined_anon; + log_format vcombined_anon '$host: $remote_addr_anon - $remote_user [$time_local] ' + '"$request" $status $body_bytes_sent ' + '"$http_referer" "$http_user_agent"'; + access_log /var/log/nginx/access.log vcombined_anon; ''; virtualHosts = {