]> granicus.if.org Git - apache/commitdiff
add 2 conditional logging examples
authorEric Covener <covener@apache.org>
Wed, 25 Jul 2018 14:46:33 +0000 (14:46 +0000)
committerEric Covener <covener@apache.org>
Wed, 25 Jul 2018 14:46:33 +0000 (14:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836638 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/expr.xml

index 89811890f1d208ec50c407d705c2fec870e7319f..219c1ad7f50a38aaba95f7ba2a2e6c3ebe1874eb 100644 (file)
@@ -718,6 +718,10 @@ Require expr %{REMOTE_ADDR} -in split s/.*?IP Address:([^,]+)/$1/, PeerExtList('
 # or alternatively:
 Require expr "IP Address:%{REMOTE_ADDR}" -in split/, /, join PeerExtList('subjectAltName')
 
+# 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>