From e12641c00c2172b5af950dc0e9a0554e9e7f0e3c Mon Sep 17 00:00:00 2001 From: Eric Covener <covener@apache.org> Date: Wed, 25 Jul 2018 14:46:43 +0000 Subject: [PATCH] xform git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836639 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/expr.html.en | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index 15c1247cfd..5f97b42783 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -663,7 +663,11 @@ RequestHeader set X-Client-SAN "expr=%{:join PeerExtList('subjectAltName'):}" # Require that the remote IP be in the client's certificate SAN Require expr %{REMOTE_ADDR} -in split s/.*?IP Address:([^,]+)/$1/, PeerExtList('subjectAltName') # or alternatively: -Require expr "IP Address:%{REMOTE_ADDR}" -in split/, /, join PeerExtList('subjectAltName')</pre> +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'}"</pre> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> -- 2.40.0