]> granicus.if.org Git - apache/commitdiff
Merge r1836638 from trunk:
authorEric Covener <covener@apache.org>
Wed, 25 Jul 2018 14:47:11 +0000 (14:47 +0000)
committerEric Covener <covener@apache.org>
Wed, 25 Jul 2018 14:47:11 +0000 (14:47 +0000)
add 2 conditional logging examples

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

docs/manual/expr.xml

index 04f07e224144d6bb3fa10156053dd10496cd631b..339d8657d43868b4db316433e5ef2f19dd4f288a 100644 (file)
@@ -627,6 +627,10 @@ Header set foo-checksum "expr=%{md5:foo}"
 # This delays the evaluation of the condition clause compared to &lt;If&gt;
 Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path\.php$#"
 
+# Conditional logging
+CustomLog logs/access-errors.log common “expr=%{REQUEST_STATUS} >= 400”
+CustomLog logs/access-errors-specific.log common “expr=%{REQUEST_STATUS} -in {'405','410'}"
+
     </highlight>
 </section>