You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/04/30 19:19:56 UTC

[Bug 54910] New: Format %{Foobar}o cannot be used to log Date and Server reply headers

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: bugs@httpd.apache.org
          Reporter: ppickett@vmware.com
    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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54910] Format %{Foobar}o cannot be used to log Date and Server reply headers

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54910

Phil Pickett <pp...@vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppickett@vmware.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54910] Format %{Foobar}o cannot be used to log Date and Server reply headers

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54910

Larry West <la...@computer.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |larrywest42@computer.org

--- Comment #1 from Larry West <la...@computer.org> ---
We see this too, in v2.2.22.

FWIW, since we see the Server header passed through to the client, it is not a
security setting.

We have a load balancer between HTTPD and the application servers, so listing
an identifier for the app server would be a big time-saver for some of our
performance investigations.   This bug impedes that.

So, this is a vote for a fix.

Thanks,

Larry West

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org