From 7380ad162d59afd02bc3f0c2c89d94d4375e3526 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 18 Jan 2011 22:52:02 +0000 Subject: [PATCH] update transforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1060607 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/sections.html.en | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/docs/manual/sections.html.en b/docs/manual/sections.html.en index 4806f97303..4ab972c80a 100644 --- a/docs/manual/sections.html.en +++ b/docs/manual/sections.html.en @@ -31,7 +31,7 @@ use configuration section containers or .htaccess files to change the scope of other configuration directives.

top
-

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 @@ -278,6 +278,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 @@ -322,6 +336,20 @@ 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.

+ + +
top

Virtual Hosts

@@ -405,6 +433,10 @@ are interpreted, it is important to understand how this works.

  • <Location> and <LocationMatch> done simultaneously
  • + +
  • <If> +
  • +

    Apart from <Directory>, each group is processed in -- 2.40.0