From bb1a984a555fc8ea8a823eed05767aa9c642f86a Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Tue, 24 Oct 2023 15:04:32 +0000 Subject: [PATCH] extra log formatting, for adding just host to the end. --- one-time-stuff/nginx/logging.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/one-time-stuff/nginx/logging.conf b/one-time-stuff/nginx/logging.conf index b8a2dba..9cb1063 100644 --- a/one-time-stuff/nginx/logging.conf +++ b/one-time-stuff/nginx/logging.conf @@ -3,3 +3,6 @@ # New SSL Log Format, tab separated (useful for "cut" command), also includes host ~ ABS log_format tabbed_detailed '$remote_addr $remote_user [$time_local] ($ssl_protocol/$ssl_cipher) $host "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'; +# regular format with host appended at the end +log_format with_host '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $host'; +