https://issues.apache.org/bugzilla/show_bug.cgi?id=54910
Bug ID: 54910
Summary: Format %{Foobar}o cannot be used to log Date and
Server reply headers
Product: Apache httpd-2
Version: 2.2.24
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_log_config
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
When using a LogFormat like the following to attempt to log the Server reply
header in the access log, no Server header is logged. This is also a problem
for the Date reply header but works for others.
LogFormat "%h %l %u %t \"%r\" %>s %b %{Server}o" common
With this LogFormat, the following appears in the access log:
127.0.0.1 - - [01/Mar/2013:09:05:29 -0700] "GET /TCSession/ HTTP/1.1" 200 241 –
I’ve narrowed this down to the following in modules/http/http_filters.c:
/* unset so we don't send them again */
apr_table_unset(r->headers_out, "Date"); /* Avoid bogosity */
apr_table_unset(r->headers_out, "Server");
I found the following related thread in the httpd dev mailing list:
http://httpd.markmail.org/message/7qdntcqiwmfdp73w?q=%22%25{Server}o%22&page=2
I've seen the same behavior in several Apache httpd 2.2/2.4 versions.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]