Filesystem and Webspace
+Filesystem, Webspace, and Boolean Expressions
The most commonly used configuration section containers are the
ones that change the configuration of particular places in the
@@ -304,6 +304,20 @@ Deny from all
+Boolean expressions
+The If
+directive change the configuration depending on a condition which can be
+expressed by a boolean expression. For example, the following configuration
+denies access if the HTTP Referer header does not start with
+"http://www.example.com/".
+
+<If "!(%{HTTP_REFERER} -strmatch 'http://www.example.com/*')">
+Require all denied
+</If>
+
+
+
+
What to use When
Choosing between filesystem containers and webspace containers is
@@ -354,6 +368,21 @@ rule. Putting configuration restrictions in a <Location
to all requests regardless of the specific URL.
+Nesting of sections
+
+Some section types can be nested inside other section types. One the one
+hand, File can be used
+inside Directory. On
+the other hand, If can
+be used inside Directory,
+Location, and Files sections. The regex
+counterparts of the named section behave identically.
+
+Nested sections are merged after non-nested sections of the same type.
+
+
+