From: Eric Covener Date: Wed, 25 Jul 2018 14:46:33 +0000 (+0000) Subject: add 2 conditional logging examples X-Git-Tag: 2.5.0-alpha2-ci-test-only~2440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f1db42246375acea731084ab8e7cfa5d71fec0e;p=thirdparty%2Fapache%2Fhttpd.git add 2 conditional logging examples git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836638 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 89811890f1d..219c1ad7f50 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -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'}" +