From: Martin Kraemer Date: Wed, 15 Dec 1999 23:04:19 +0000 (+0000) Subject: Peter Watkins writes: X-Git-Tag: 1.3.10~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a912121ecb63e67427623f115aef76f0708dcf6;p=apache Peter Watkins writes: 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 Reviewed by: Martin Kraemer git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84301 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_log_config.html b/docs/manual/mod/mod_log_config.html index cbc403f30b..d3d9d5106f 100644 --- a/docs/manual/mod/mod_log_config.html +++ b/docs/manual/mod/mod_log_config.html @@ -121,24 +121,28 @@ the log files, and `%' directives which are replaced in the log file by the values as follows:
+%...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 --- %...>s for the last.
+%...s:          Status.  For requests that got internally redirected, this is
+                the status of the *original* request --- %...>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
 
The `...' can be nothing at all (e.g., "%h %u %r %s %b"), or it can