Commit 088379e8 authored by Eric Covener's avatar Eric Covener
Browse files

add 2 conditional logging examples



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836638 13f79535-47bb-0310-9956-ffa450edef68
parent 2e90aa04
Loading
Loading
Loading
Loading
+4 −0
Changes for docs/manual/expr.xml: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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>