]> granicus.if.org Git - apache/commitdiff
Document the LimitInternalRecursion directive.
authorAndré Malo <nd@apache.org>
Mon, 19 May 2003 01:59:09 +0000 (01:59 +0000)
committerAndré Malo <nd@apache.org>
Mon, 19 May 2003 01:59:09 +0000 (01:59 +0000)
Reviewed by: Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99913 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index fbae54fd9fcbfb7729bc3d844b46a7fba4c68f3b..85436b4adbd83dbc5ed7d317db2a5c340a132e14 100644 (file)
@@ -1462,6 +1462,41 @@ except the named ones</description>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>LimitInternalRecursion</name>
+<description>Determine maximum number of internal redirects and nested
+subrequests</description>
+<syntax>LimitInternalRecursion <var>number</var> [<var>number</var>]</syntax>
+<default>LimitInternalRecursion 10</default>
+<contextlist><context>server config</context><context>virtual host</context>
+</contextlist>
+<compatibility>Available in Apache 2.1 and later</compatibility>
+
+<usage>
+    <p>An internal redirect happens, for example, when using the <directive
+    module="mod_actions">Action</directive> directive, which internally
+    redirects the original request to a CGI script. A subrequest is Apache's
+    mechanism to find out what would happen for some URI if it were requested.
+    For example, <module>mod_dir</module> uses subrequests to look for the
+    files listed in the <directive module="mod_dir">DirectoryIndex</directive>
+    directive.</p>
+
+    <p><directive>LimitInternalRecursion</directive> prevents the server
+    from crashing when entering an infinite loop of internal redirects or
+    subrequests. Such loops are usually caused by misconfigurations.</p>
+
+    <p>The directive stores two different limits, which are evaluated on
+    per-request basis. The first <var>number</var> is the maximum number of
+    internal redirects, that may follow each other. The second <var>number</var>
+    determines, how deep subrequests may be nested. If you specify only one
+    <var>number</var>, it will be assigned to both limits.</p>
+
+    <example><title>Example</title>
+      LimitInternalRecursion 5
+    </example>
+</usage>
+</directivesynopsis>
+
 <directivesynopsis>
 <name>LimitRequestBody</name>
 <description>Restricts the total size of the HTTP request body sent