From e3cc634d1362f6fb35becfec66a6edc842cbb78d Mon Sep 17 00:00:00 2001 From: Luca Toscano Date: Fri, 19 Feb 2016 07:52:05 +0000 Subject: [PATCH] Documentation rebuild git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1731193 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/sections.html.en | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/manual/sections.html.en b/docs/manual/sections.html.en index 3f89f98a89..cff69d667e 100644 --- a/docs/manual/sections.html.en +++ b/docs/manual/sections.html.en @@ -478,33 +478,32 @@ are interpreted, it is important to understand how this works.

of the httpd to determine how they should act.

An example can help to visualize the whole process. The following configuration uses the Header directive of mod_headers to set - a specific HTTP header. What value will httpd set in the foo header for a request to + a specific HTTP header. What value will httpd set in the CustomHeaderName header for a request to /example/index.html ?

<Directory "/">
-    Header set foo one
+    Header set CustomHeaderName one
     <FilesMatch ".*">
-        Header set foo three
+        Header set CustomHeaderName three
     </FilesMatch>
 </Directory>
 
 <Directory "/example">
-    Header set foo two
+    Header set CustomHeaderName two
 </Directory>

This is true for .htaccess too since they have the same priority as Directory in the merge order. The important concept to understand is that configuration sections like Directory and FilesMatch are not comparable to module specific directives like Header or RewriteRule because they operate on different levels.

-

Some useful merge examples to practice

+

Some useful examples

Below is an artificial example to show the order of merging. Assuming they all apply to the request, the directives in -- 2.50.1