You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2016/09/23 04:47:57 UTC
svn commit: r1762015 - /httpd/httpd/branches/2.4.x/docs/manual/expr.xml
Author: jailletc36
Date: Fri Sep 23 04:47:56 2016
New Revision: 1762015
URL: http://svn.apache.org/viewvc?rev=1762015&view=rev
Log:
Backport r1762012 & r1762013
Remove some trailing spaces to synch with trunk
Modified:
httpd/httpd/branches/2.4.x/docs/manual/expr.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/expr.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/expr.xml?rev=1762015&r1=1762014&r2=1762015&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/expr.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/expr.xml Fri Sep 23 04:47:56 2016
@@ -290,12 +290,12 @@ listfunction ::= listfuncname "<strong>(
<tr><td><code>TIME_YEAR</code></td>
<td>The current year (e.g. <code>2010</code>)</td></tr>
<tr><td><code>TIME_MON</code></td>
- <td>The current month (<code>1</code>, ..., <code>12</code>)</td></tr>
+ <td>The current month (<code>01</code>, ..., <code>12</code>)</td></tr>
<tr><td><code>TIME_DAY</code></td>
- <td>The current day of the month</td></tr>
+ <td>The current day of the month (<code>01</code>, ...)</td></tr>
<tr><td><code>TIME_HOUR</code></td>
<td>The hour part of the current time
- (<code>0</code>, ..., <code>23</code>)</td></tr>
+ (<code>00</code>, ..., <code>23</code>)</td></tr>
<tr><td><code>TIME_MIN</code></td>
<td>The minute part of the current time </td></tr>
<tr><td><code>TIME_SEC</code></td>
@@ -561,12 +561,13 @@ listfunction ::= listfuncname "<strong>(
</section>
<section id="examples">
-
- <title>Example expressions</title>
+
+ <title>Example expressions</title>
<p>The following examples show how expressions might be used to
evaluate requests:</p>
- <!-- This section should probably be extended with more, useful examples -->
- <highlight language="config">
+
+ <!-- This section should probably be extended with more, useful examples -->
+ <highlight language="config">
# 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 "<strong>(
# 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 "<strong>(
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$#"
- </highlight>
+ </highlight>
</section>
<section id="other">