You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Laurent Perez <ha...@gmail.com> on 2006/06/05 16:09:39 UTC

mod_log_config %{Foobar}o doesn't work under 2.2

Hi

The Format String "%{Foobar}o" (The contents of Foobar: header line(s)
in the reply.) shown at
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html does not work
for every reply header sent by the server. Instead, it give "-".

For example, Content-type works, but Date or Server do not. Is
"%{Server}o" the right syntax to log the "Server:" header, or is it
broken ? An ethereal trace shows a value for the Server: header.

thanks
laurent

Re: mod_log_config %{Foobar}o doesn't work under 2.2

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Laurent Perez wrote:
> 
> For example, Content-type works, but Date or Server do not. Is
> "%{Server}o" the right syntax to log the "Server:" header, or is it
> broken ? An ethereal trace shows a value for the Server: header.

Server and Date are added later and cannot be overridden, but it probably
makes sense to change the code to inject these absolute settings back into
the headers_out array for post-request logging.

Bill