You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2018/07/25 14:47:11 UTC

svn commit: r1836640 - /httpd/httpd/branches/2.4.x/docs/manual/expr.xml

Author: covener
Date: Wed Jul 25 14:47:11 2018
New Revision: 1836640

URL: http://svn.apache.org/viewvc?rev=1836640&view=rev
Log:
Merge r1836638 from trunk:

add 2 conditional logging examples



Modified:
    httpd/httpd/branches/2.4.x/docs/manual/expr.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/expr.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/expr.xml?rev=1836640&r1=1836639&r2=1836640&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/expr.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/expr.xml Wed Jul 25 14:47:11 2018
@@ -627,6 +627,10 @@ Header set foo-checksum "expr=%{md5:foo}
 # This delays the evaluation of the condition clause compared to <If>
 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>