]> granicus.if.org Git - apache/commitdiff
Peter Watkins writes:
authorMartin Kraemer <martin@apache.org>
Wed, 15 Dec 1999 23:04:19 +0000 (23:04 +0000)
committerMartin Kraemer <martin@apache.org>
Wed, 15 Dec 1999 23:04:19 +0000 (23:04 +0000)
In September, there was discussion of mod_log_config and some need to
break the client request "%r" into its separate components. A patch was
committed to the 1.3 dev tree that exposed the method and protocol
request members as "%m" and "%H". It was noted that "%m %U %H" was not
the same as "%r" because %U does not include query string information.
The attached patches add support for logging query string in such a way
that "%m %U%q %H" is the same as "%r". I would like to see this committed
to take care of the unfinished business begun with "%m" and "%H".
Thanks,
 -Peter

PR: 5174
Submitted by: Peter Watkins <peterw@usa.net>
Reviewed by: Martin Kraemer

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84301 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_log_config.html

index cbc403f30b34129e9ec84a0e062e562cf76459a8..d3d9d5106fa931f3203a15acd5dbe65745c92a94 100644 (file)
@@ -121,24 +121,28 @@ the log files, and `%' directives which are replaced in the log file
 by the values as follows:
 
 <PRE>
+%...a:          Remote IP-address
+%...A:          Local IP-address
 %...B:          Bytes sent, excluding HTTP headers.
 %...b:          Bytes sent, excluding HTTP headers. In CLF format
                i.e. a '-' rather than a 0 when no bytes are sent.
-%...f:          Filename
 %...{FOOBAR}e:  The contents of the environment variable FOOBAR
+%...f:          Filename
 %...h:          Remote host
-%...a:          Remote IP-address
-%...A:          Local IP-address
+%...H          The request protocol
 %...{Foobar}i:  The contents of Foobar: header line(s) in the request
                 sent to the server.
 %...l:          Remote logname (from identd, if supplied)
+%...m          The request method
 %...{Foobar}n:  The contents of note "Foobar" from another module.
 %...{Foobar}o:  The contents of Foobar: header line(s) in the reply.
 %...p:          The canonical Port of the server serving the request
 %...P:          The process ID of the child that serviced the request.
+%...q          The query string (prepended with a ? if a query string exists,
+               otherwise an empty string)
 %...r:          First line of request
-%...s:          Status.  For requests that got internally redirected, this
-                is status of the *original* request --- %...&gt;s for the last.
+%...s:          Status.  For requests that got internally redirected, this is
+                the status of the *original* request --- %...&gt;s for the last.
 %...t:          Time, in common log format time format (standard english format)
 %...{format}t:  The time, in the form given by format, which should
                 be in strftime(3) format. (potentially localised)
@@ -147,8 +151,6 @@ by the values as follows:
 %...U:          The URL path requested.
 %...v:          The canonical ServerName of the server serving the request.
 %...V:          The server name according to the UseCanonicalName setting.
-%...m          The request method
-%...H          The request protocol
 </PRE>
 
 The `...' can be nothing at all (<EM>e.g.</EM>, <CODE>"%h %u %r %s %b"</CODE>), or it can