From d929f0607876509ea75e45ecffe6b7576fb53f2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 17 Oct 2015 17:39:59 +0300 Subject: [PATCH] fix broken ErrorLogFormat. refs e13a60a spaces need to be backslash escaped for optional fields (like client) do not break existing log format, which log parsers assume, log vhost like client optionally. also do not enable it by default. stick to compiled in default --- apache-httpd.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apache-httpd.conf b/apache-httpd.conf index a66d651..df601c7 100644 --- a/apache-httpd.conf +++ b/apache-httpd.conf @@ -47,7 +47,13 @@ ServerName localhost # logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. ErrorLog logs/error_log -ErrorLogFormat "%v [%t] [%l] [pid %P] [client %a] %M %m" + +# ErrorLogFormat [connection|request] format +# Format specification for error log entries +# https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat +# There is no default value, Apache uses different built in function if +# ErrorLogFormat is not defined. +#ErrorLogFormat "[%t] [%l] [pid\ %P] [client\ %a] [vhost\ %v] %M %m" # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, -- 2.44.0