You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2012/02/02 20:31:02 UTC
svn commit: r1239778 - in /httpd/httpd/trunk/docs/manual:
mod/mod_rewrite.xml rewrite/rewritemap.xml
Author: covener
Date: Thu Feb 2 19:31:01 2012
New Revision: 1239778
URL: http://svn.apache.org/viewvc?rev=1239778&view=rev
Log:
document a small trunk-only mod_rewrite indulgence
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?rev=1239778&r1=1239777&r2=1239778&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Thu Feb 2 19:31:01 2012
@@ -264,9 +264,9 @@ Apache HTTP Server 2.0.41 and later</com
utility. (<a href="../rewrite/rewritemap.html#dbm">Details ...</a>)</dd>
<dt>int</dt>
- <dd>One of the four available internal functions provided by
- <code>RewriteMap</code>: toupper, tolower, escape or
- unescape. (<a href="../rewrite/rewritemap.html#int">Details ...</a>)</dd>
+ <dd>One of the five available internal functions provided by
+ <code>RewriteMap</code>: toupper, tolower, escape, unescape, or sleep.
+ (<a href="../rewrite/rewritemap.html#int">Details ...</a>)</dd>
<dt>prg</dt>
<dd>Calls an external program or script to process the
@@ -1041,7 +1041,9 @@ cannot use <code>$N</code> in the substi
<dd>A dash indicates that no substitution should be performed
(the existing path is passed through untouched). This is used
when a flag (see below) needs to be applied without changing
- the path.</dd>
+ the path. In Apache HTTP Server 2.5.0 and later, a substitution
+ that ultimately expands to this single character is also treated as
+ "no substitution".</dd>
</dl>
Modified: httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml?rev=1239778&r1=1239777&r2=1239778&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml Thu Feb 2 19:31:01 2012
@@ -315,6 +315,11 @@ by many requests.
<li><strong>unescape</strong>:<br/>
Translates hex-encodings in the key back to
special characters.</li>
+ <li><strong>sleep</strong>:<br/>
+ Causes the request to sleep for the amount of time specified in
+ the key, in milliseconds. Keys are accepted in the form of
+ "2000", "2000ms", or "2s". This map always returns an empty value.
+ <p> Available since Apache HTTP Server 2.5.0</p> </li>
</ul>
<p>
@@ -326,6 +331,12 @@ by many requests.
RewriteMap lc int:tolower<br />
RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
</example>
+
+ <example><title>Delay a request by one half of a second</title>
+ RewriteMap sleep int:sleep<br />
+ RewriteRule ^/foo/bar.html -${sleep:"500ms"}
+ </example>
+
<note>
<p>Please note that the example offered here is for