Loading docs/manual/expr.xml +11 −10 Original line number Diff line number Diff line Loading @@ -290,12 +290,12 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</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> Loading Loading @@ -565,6 +565,7 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>" <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"> # Compare the host name to example.com and redirect to www.example.com if it matches Loading Loading @@ -614,7 +615,7 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</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> </section> Loading Loading
docs/manual/expr.xml +11 −10 Original line number Diff line number Diff line Loading @@ -290,12 +290,12 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</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> Loading Loading @@ -565,6 +565,7 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>" <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"> # Compare the host name to example.com and redirect to www.example.com if it matches Loading Loading @@ -614,7 +615,7 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</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> </section> Loading