Commit 43fcb72a authored by Luca Toscano's avatar Luca Toscano
Browse files

Add a warning in the docs about nested <If> blocks



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787510 13f79535-47bb-0310-9956-ffa450edef68
parent 1542a894
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2214,6 +2214,14 @@ satisfied by a request at runtime</description>
    <p>Only directives that support the <a href="directive-dict.html#Context"
    >directory context</a> can be used within this configuration section.</p>

    <note><title>Not a scripting language</title>
    The name of this directive is very familiar to programmers and admins 
    but it should not be confused with its counterpart in scripting languages.
    For example, the current implementation does not contemplate the possibility
    of having a <directive type="section">If</directive> section inside another
    one (the inner <directive type="section">If</directive> will be ignored).
    </note>

    <note type="warning">
    Certain variables, such as <code>CONTENT_TYPE</code> and other
    response headers, are set after &lt;If&gt; conditions have already
+2 −1
Original line number Diff line number Diff line
@@ -381,7 +381,8 @@ inside <directive type="section" module="core">Directory</directive>. On
the other hand, <directive type="section" module="core">If</directive> can
be used inside <directive type="section" module="core">Directory</directive>,
<directive type="section" module="core">Location</directive>, and <directive
type="section" module="core">Files</directive> sections. The regex
type="section" module="core">Files</directive> sections (but not inside another
<directive type="section" module="core">If</directive>). The regex
counterparts of the named section behave identically.</p>

<p>Nested sections are merged after non-nested sections of the same type.</p>