From: TJ S. <cas...@us...> - 2011-12-03 19:29:58
|
Update of /cvsroot/proftp/proftpd/doc/contrib In directory vz-cvs-3.sog:/tmp/cvs-serv30071/doc/contrib Modified Files: mod_rewrite.html Log Message: Adding documentation for the new RewriteMaxReplace directive, added for Bug#3721. Index: mod_rewrite.html =================================================================== RCS file: /cvsroot/proftp/proftpd/doc/contrib/mod_rewrite.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- mod_rewrite.html 23 Mar 2009 02:04:31 -0000 1.6 +++ mod_rewrite.html 3 Dec 2011 19:29:56 -0000 1.7 @@ -37,6 +37,7 @@ <li><a href="#RewriteLock">RewriteLock</a> <li><a href="#RewriteLog">RewriteLog</a> <li><a href="#RewriteMap">RewriteMap</a> + <li><a href="#RewriteMaxReplace">RewriteMaxReplace</a> <li><a href="#RewriteRule">RewriteRule</a> </ul> @@ -571,6 +572,30 @@ <p> <hr> +<h2><a name="RewriteMaxReplace">RewriteMaxReplace</a></h2> +<strong>Syntax:</strong> RewriteMaxReplace <em>count</em><br> +<strong>Default:</strong> 8<br> +<strong>Context:</strong> server config, <code><VirtualHost></code>, <code><Global></code><br> +<strong>Module:</strong> mod_rewrite<br> +<strong>Compatibility:</strong> 1.3.5rc1 and later + +<p> +The <code>RewriteMaxReplace</code> directive is used to increase the number +of replacements/substitutions that <code>mod_rewrite</code> will perform, +when rewriting commands. By default, <code>mod_rewrite</code> will only +replace up to 8 occurrences of a pattern in the input string; if there are more +than 8 replacement occurrences, then the input string will be unchanged. +If your input strings happen to have more than 8 occurrences to be replaced, +you can use the <code>RewriteMaxReplace</code> to increase that limit. + +<p> +For example, to increase the limit to 32 occurrences to be replaced, use: +<pre> + RewriteMaxReplace 32 +</pre> + +<p> +<hr> <h2><a name="RewriteRule">RewriteRule</a></h2> <strong>Syntax:</strong> RewriteRule <em>pattern substitution [flags]</em><br> <strong>Default:</strong> None<br> @@ -793,7 +818,7 @@ <br><hr> <font size=2><b><i> -© Copyright 2000-2009 TJ Saunders<br> +© Copyright 2000-2011 TJ Saunders<br> All Rights Reserved<br> </i></b></font> |