]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport:
authorJoshua Slive <slive@apache.org>
Tue, 23 Mar 2004 18:00:25 +0000 (18:00 +0000)
committerJoshua Slive <slive@apache.org>
Tue, 23 Mar 2004 18:00:25 +0000 (18:00 +0000)
  Document the ability to look at original of final subrequest.

  I'd appreciate a review from someone more familiar with
  mod_log_config!

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

docs/manual/mod/mod_log_config.html.en
docs/manual/mod/mod_log_config.xml

index 2f20afa4f998482e84331fab3434fdce0570c6f7..f14b84ab129817fb9fa78a43b3b2a28d63a35c02 100644 (file)
     "%!200,304,302{Referer}i" logs <code>Referer:</code> on all requests
     which did <em>not</em> return some sort of normal status.</p>
 
+    <p>The modifiers "&lt;" and "&gt;" can be used for requests that
+    have been internally redirected to choose whether the original or
+    final (respectively) request should be consulted.  By default, the
+    <code>%</code> directives <code>%s, %U, %T, %D,</code> and
+    <code>%r</code> look at the original request while all others look
+    at the final request.  So for example, <code>%&gt;s</code> can be
+    used to record the final status of the request and
+    <code>%&lt;u</code> can be used to record the original
+    authenticated user on a request that is internally redirect to an
+    unauthenticated resource.</p>
+
     <p>Note that in httpd 2.0 versions prior to 2.0.46, no escaping was performed
     on the strings from <code>%...r</code>, <code>%...i</code> and
     <code>%...o</code>. This was mainly to comply with the requirements of
index 05d1a4b9aa0dd1d5837aff05c55c32726d5cbdf9..e6dd6c522b8ac206bface4fbe48e6947f9ebfa5e 100644 (file)
     "%!200,304,302{Referer}i" logs <code>Referer:</code> on all requests
     which did <em>not</em> return some sort of normal status.</p>
 
+    <p>The modifiers "&lt;" and "&gt;" can be used for requests that
+    have been internally redirected to choose whether the original or
+    final (respectively) request should be consulted.  By default, the
+    <code>%</code> directives <code>%s, %U, %T, %D,</code> and
+    <code>%r</code> look at the original request while all others look
+    at the final request.  So for example, <code>%&gt;s</code> can be
+    used to record the final status of the request and
+    <code>%&lt;u</code> can be used to record the original
+    authenticated user on a request that is internally redirect to an
+    unauthenticated resource.</p>
+
     <p>Note that in httpd 2.0 versions prior to 2.0.46, no escaping was performed
     on the strings from <code>%...r</code>, <code>%...i</code> and
     <code>%...o</code>. This was mainly to comply with the requirements of