summaryrefslogtreecommitdiffstats
path: root/docs/manual/expr.xml
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2018-07-25 16:46:33 +0200
committerEric Covener <covener@apache.org>2018-07-25 16:46:33 +0200
commit6f1db42246375acea731084ab8e7cfa5d71fec0e (patch)
tree5722e1c223ad40e47971b2b29c455ae2a404064f /docs/manual/expr.xml
parent* Forward port r1832855 missing in trunk. (diff)
downloadapache2-6f1db42246375acea731084ab8e7cfa5d71fec0e.tar.xz
apache2-6f1db42246375acea731084ab8e7cfa5d71fec0e.zip
add 2 conditional logging examples
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836638 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/expr.xml')
-rw-r--r--docs/manual/expr.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml
index 89811890f1..219c1ad7f5 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'}"
+
</highlight>
</section>