Commit d661eecb authored by Eric Covener's avatar Eric Covener
Browse files

Merge r1836638 from trunk:

add 2 conditional logging examples




git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1836640 13f79535-47bb-0310-9956-ffa450edef68
parent bf5de669
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -627,6 +627,10 @@ Header set foo-checksum "expr=%{md5:foo}"
# This delays the evaluation of the condition clause compared to <If>
Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path\.php$#"

# 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>