]> granicus.if.org Git - apache/commitdiff
xform
authorEric Covener <covener@apache.org>
Thu, 26 Jul 2018 19:51:52 +0000 (19:51 +0000)
committerEric Covener <covener@apache.org>
Thu, 26 Jul 2018 19:51:52 +0000 (19:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1836761 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/expr.html.en

index defcd92a64704db4d9673f10b4962dd664561dbe..53debda400b5a5f3e4880ed02959d7ee5c4cee06 100644 (file)
@@ -576,7 +576,11 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"</pr
 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$#"</pre>
+Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path\.php$#"
+
+# Conditional logging
+CustomLog logs/access-errors.log common "expr=%{REQUEST_STATUS} &gt;= 400"
+CustomLog logs/access-errors-specific.log common "expr=%{REQUEST_STATUS} -in {'405','410'}"</pre>
 
 </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
 <div class="section">