You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by el...@apache.org on 2017/03/17 22:09:21 UTC
svn commit: r1787510 - in /httpd/httpd/trunk/docs/manual: mod/core.xml
sections.xml
Author: elukey
Date: Fri Mar 17 22:09:21 2017
New Revision: 1787510
URL: http://svn.apache.org/viewvc?rev=1787510&view=rev
Log:
Add a warning in the docs about nested <If> blocks
Modified:
httpd/httpd/trunk/docs/manual/mod/core.xml
httpd/httpd/trunk/docs/manual/sections.xml
Modified: httpd/httpd/trunk/docs/manual/mod/core.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/core.xml?rev=1787510&r1=1787509&r2=1787510&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/core.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/core.xml Fri Mar 17 22:09:21 2017
@@ -2214,6 +2214,14 @@ satisfied by a request at runtime</descr
<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 <If> conditions have already
Modified: httpd/httpd/trunk/docs/manual/sections.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/sections.xml?rev=1787510&r1=1787509&r2=1787510&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/sections.xml (original)
+++ httpd/httpd/trunk/docs/manual/sections.xml Fri Mar 17 22:09:21 2017
@@ -381,7 +381,8 @@ inside <directive type="section" module=
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>