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

docs/manual/expr.html.en

index 15c1247cfd7cfd591fec0a508c752a36e87c984a..5f97b42783e63d5e8a8100fa151af2dc6981ef27 100644 (file)
@@ -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 &#8220;expr=%{REQUEST_STATUS} &gt;= 400&#8221;
+CustomLog logs/access-errors-specific.log common &#8220;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">