From: Luca Toscano
Date: Fri, 17 Mar 2017 22:09:21 +0000 (+0000)
Subject: Add a warning in the docs about nested blocks
X-Git-Tag: 2.5.0-alpha~552
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00789966605deba45b1798b4a2004ec338821e79;p=thirdparty%2Fapache%2Fhttpd.git
Add a warning in the docs about nested blocks
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1787510 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index ce1b9488617..10d228361d0 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -2214,6 +2214,14 @@ satisfied by a request at runtime
Only directives that support the directory context can be used within this configuration section.
+ Not a scripting language
+ 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 If section inside another
+ one (the inner If will be ignored).
+
+
Certain variables, such as CONTENT_TYPE
and other
response headers, are set after <If> conditions have already
diff --git a/docs/manual/sections.xml b/docs/manual/sections.xml
index 81ee6e3eeea..ea807e837f4 100644
--- a/docs/manual/sections.xml
+++ b/docs/manual/sections.xml
@@ -381,7 +381,8 @@ inside Directory. On
the other hand, If can
be used inside Directory,
Location, and Files sections. The regex
+type="section" module="core">Files sections (but not inside another
+If). The regex
counterparts of the named section behave identically.
Nested sections are merged after non-nested sections of the same type.