[packages/apache] fix broken ErrorLogFormat. refs e13a60a
glen
glen at pld-linux.org
Sat Oct 17 16:43:41 CEST 2015
commit d929f0607876509ea75e45ecffe6b7576fb53f2c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Oct 17 17:39:59 2015 +0300
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 <VirtualHost>
# 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,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache.git/commitdiff/d929f0607876509ea75e45ecffe6b7576fb53f2c
More information about the pld-cvs-commit
mailing list