From 8a3a909bb07a5114dbc83f1af076f687790ec3a1 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Sun, 30 Nov 2014 18:17:33 +0000 Subject: [PATCH] Merge r1642581, r1642584 from trunk: even out some whitespace add a few more examples per feedback git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1642587 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/expr.xml | 2 +- docs/manual/mod/mod_authz_core.xml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 1f225ca89e..033e56c7b0 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -552,7 +552,7 @@ listfunction ::= listfuncname "(" word ")" </Directory> # Check a HTTP header for a list of values -<If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz'}"> +<If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz' }"> Header set matched true </If> diff --git a/docs/manual/mod/mod_authz_core.xml b/docs/manual/mod/mod_authz_core.xml index 2c5c1b8083..3d58f569bb 100644 --- a/docs/manual/mod/mod_authz_core.xml +++ b/docs/manual/mod/mod_authz_core.xml @@ -231,6 +231,17 @@ SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in Require expr "%{TIME_HOUR} -ge 9 && %{TIME_HOUR} -le 17" + +<RequireAll> + Require expr "!(%{QUERY_STRING} =~ /secret/)" + Require expr "%{REQUEST_URI} in { '/example.cgi' }" +</RequireAll> + + + + Require expr "!(%{QUERY_STRING} =~ /secret/) && %{REQUEST_URI} in { '/example.cgi' }" + +

The syntax is described in the ap_expr documentation.

-- 2.40.0