You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2003/03/19 15:59:29 UTC
cvs commit: httpd-docs-1.3/htdocs/manual/mod mod_rewrite.html
nd 2003/03/19 06:59:28
Modified: htdocs/manual/mod mod_rewrite.html
Log:
document the new RewriteOption
Revision Changes Path
1.63 +22 -12 httpd-docs-1.3/htdocs/manual/mod/mod_rewrite.html
Index: mod_rewrite.html
===================================================================
RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_rewrite.html,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- mod_rewrite.html 31 May 2002 07:51:51 -0000 1.62
+++ mod_rewrite.html 19 Mar 2003 14:59:27 -0000 1.63
@@ -393,7 +393,8 @@
rel="Help"><strong>Syntax:</strong></a> RewriteOptions
<em>Option</em><br />
<a href="directive-dict.html#Default"
- rel="Help"><strong>Default:</strong></a> <em>None</em><br />
+ rel="Help"><strong>Default:</strong></a> <code>RewriteOptions
+ MaxRedirects=10</code><br />
<a href="directive-dict.html#Context"
rel="Help"><strong>Context:</strong></a> server config,
virtual host, directory, .htaccess<br />
@@ -405,23 +406,32 @@
rel="Help"><strong>Module:</strong></a> mod_rewrite.c<br />
<a href="directive-dict.html#Compatibility"
rel="Help"><strong>Compatibility:</strong></a> Apache
- 1.2<br />
-
+ 1.2; <code>MaxRedirects</code> is available in Apache 1.3.28 and
+ later<br />
+
<p>The <code>RewriteOptions</code> directive sets some
special options for the current per-server or per-directory
configuration. The <em>Option</em> strings can be one of the
following:</p>
- <ul>
- <li>'<strong><code>inherit</code></strong>'<br />
- This forces the current configuration to inherit the
- configuration of the parent. In per-virtual-server context
- this means that the maps, conditions and rules of the main
- server are inherited. In per-directory context this means
- that conditions and rules of the parent directory's
- <code>.htaccess</code> configuration are inherited.</li>
- </ul>
+ <dl>
+ <dt><code>inherit</code></dt>
+ <dd>This forces the current configuration to inherit the
+ configuration of the parent. In per-virtual-server context
+ this means that the maps, conditions and rules of the main
+ server are inherited. In per-directory context this means
+ that conditions and rules of the parent directory's
+ <code>.htaccess</code> configuration are inherited.</dd>
+
+ <dt><code>MaxRedirects=<var>number</var></code></dt>
+ <dd>In order to prevent endless loops of internal redirects
+ issued by per-directory <code>RewriteRule</code>s,
+ <code>mod_rewrite</code> aborts the request after reaching a
+ maximum number of such redirects and responds with an 500 Internal
+ Server Error. If you really need more internal redirects than 10
+ per request, you may increase the default to the desired value.</dd>
+ </dl>
<hr noshade="noshade" size="1" />
<h3><a id="RewriteLog" name="RewriteLog">RewriteLog</a></h3>