From: Christophe Jaillet Date: Fri, 23 Sep 2016 04:47:56 +0000 (+0000) Subject: Backport r1762012 & r1762013 X-Git-Tag: 2.4.24~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f358d44cd1dad323ccb47ffe59a91195f59914;p=thirdparty%2Fapache%2Fhttpd.git Backport r1762012 & r1762013 Remove some trailing spaces to synch with trunk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1762015 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 18bf9f37858..2572beac7e0 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -290,12 +290,12 @@ listfunction ::= listfuncname "(" word ")" TIME_YEAR The current year (e.g. 2010) TIME_MON - The current month (1, ..., 12) + The current month (01, ..., 12) TIME_DAY - The current day of the month + The current day of the month (01, ...) TIME_HOUR The hour part of the current time - (0, ..., 23) + (00, ..., 23) TIME_MIN The minute part of the current time TIME_SEC @@ -561,12 +561,13 @@ listfunction ::= listfuncname "(" word ")"
- - Example expressions + + Example expressions

The following examples show how expressions might be used to evaluate requests:

- - + + + # Compare the host name to example.com and redirect to www.example.com if it matches <If "%{HTTP_HOST} == 'example.com'"> Redirect permanent "/" "http://www.example.com/" @@ -580,7 +581,7 @@ listfunction ::= listfuncname "(" word ")" # Only allow access to this content during business hours <Directory "/foo/bar/business"> Require expr %{TIME_HOUR} -gt 9 && %{TIME_HOUR} -lt 17 -</Directory> +</Directory> # Check a HTTP header for a list of values <If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz' }"> @@ -614,9 +615,9 @@ listfunction ::= listfuncname "(" word ")" 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$#" +Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path\.php$#" - +