Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 50694 invoked by uid 500); 19 Mar 2003 14:59:31 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 50647 invoked by uid 500); 19 Mar 2003 14:59:30 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Delivered-To: apmail-httpd-docs-1.3-cvs@apache.org Date: 19 Mar 2003 14:59:29 -0000 Message-ID: <20030319145929.87273.qmail@icarus.apache.org> From: nd@apache.org To: httpd-docs-1.3-cvs@apache.org Subject: cvs commit: httpd-docs-1.3/htdocs/manual/mod mod_rewrite.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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">Syntax: RewriteOptions Option
Default: None
+ rel="Help">Default: RewriteOptions + MaxRedirects=10
Context: server config, virtual host, directory, .htaccess
@@ -405,23 +406,32 @@ rel="Help">Module: mod_rewrite.c
Compatibility: Apache - 1.2
- + 1.2; MaxRedirects is available in Apache 1.3.28 and + later
+

The RewriteOptions directive sets some special options for the current per-server or per-directory 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.
+

RewriteLog