From 422ca25f39a44b9af19d91c422e13e9a5301750e Mon Sep 17 00:00:00 2001 From: Andre Malo Date: Sat, 1 Mar 2003 19:56:43 +0000 Subject: [PATCH] add documentation of RewriteOptions MaxRedirects git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98864 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.xml | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index be975d7359..2af171ff59 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -308,10 +308,13 @@ SCRIPT_URI=http://en1.engelschall.com/u/rse/ RewriteOptions Sets some special options for the rewrite engine -RewriteOptions Options +RewriteOptions Options +RewriteOptions MaxRedirects=10 server configvirtual host directory.htaccess FileInfo +MaxRedirects is available in Apache 2.1 and +later

The RewriteOptions directive sets some @@ -319,15 +322,24 @@ SCRIPT_URI=http://en1.engelschall.com/u/rse/ configuration. The Option strings can be one of the following:

-
    -
  • 'inherit'
    - 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 - .htaccess configuration are inherited.
  • -
+
+
inherit
+
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 + .htaccess configuration are inherited.
+ +
MaxRedirects=number
+
In order to prevent endless loops of internal redirects + issued by per-directory RewriteRules, mod_rewrite 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.
+
-- 2.40.0