httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1762015 - /httpd/httpd/branches/2.4.x/docs/manual/expr.xml
Date Fri, 23 Sep 2016 04:47:57 GMT
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
 &lt;If "%{HTTP_HOST} == 'example.com'"&gt;
     Redirect permanent "/" "http://www.example.com/"
@@ -580,7 +581,7 @@ listfunction ::= listfuncname "<strong>(
 # Only allow access to this content during business hours
 &lt;Directory "/foo/bar/business"&gt;
     Require expr %{TIME_HOUR} -gt 9 &amp;&amp; %{TIME_HOUR} -lt 17
-&lt;/Directory&gt;	
+&lt;/Directory&gt;
 
 # Check a HTTP header for a list of values
 &lt;If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz' }"&gt;
@@ -614,9 +615,9 @@ listfunction ::= listfuncname "<strong>(
 Header set foo-checksum "expr=%{md5:foo}"
 
 # This delays the evaluation of the condition clause compared to &lt;If&gt;
-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">



Mime
View raw message