From 1fb4703596246f645d6e0f7d5a20afc9961c3544 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Wed, 23 Oct 2024 15:25:24 -0600 Subject: [PATCH] log format bug fix --- install/nginx-log-format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/nginx-log-format.sh b/install/nginx-log-format.sh index 3c03c3b..8c836ec 100644 --- a/install/nginx-log-format.sh +++ b/install/nginx-log-format.sh @@ -1,7 +1,7 @@ #!/bin/bash # Define the log format (all on one line) -LOG_FORMAT='log_format domain_combined '\''$host $remote_addr - $remote_user [$time_local] "\"$request\"" $status $body_bytes_sent "\"$http_referer\"" "\"$http_user_agent\""'\'';' +LOG_FORMAT='log_format domain_combined '"'"'$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'"'"';' # Check if we're root if [ "$EUID" -ne 0 ]; then