From: Eric Covener Date: Tue, 30 Nov 2010 12:40:38 +0000 (+0000) Subject: PR50376 clarify that applies to the files under the Directory, not just... X-Git-Tag: 2.3.10~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f1cd329a95e1a23199851ed84b45e48432c2a7c;p=apache PR50376 clarify that applies to the files under the Directory, not just the directories themselves. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040494 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 96f9105d69..b75f715a2b 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -554,7 +554,7 @@ which no other media type configuration could be found. Directory Enclose a group of directives that apply only to the -named file-system directory and sub-directories +named file-system directory, sub-directories, and their contents. <Directory directory-path> ... </Directory> server configvirtual host @@ -563,8 +563,9 @@ named file-system directory and sub-directories

Directory and </Directory> are used to enclose a group of - directives that will apply only to the named directory and - sub-directories of that directory. Any directive that is allowed + directives that will apply only to the named directory, + sub-directories of that directory, and the files within the respective + directories. Any directive that is allowed in a directory context may be used. Directory-path is either the full path to a directory, or a wild-card string using Unix shell-style matching. In a wild-card string, ? matches @@ -695,7 +696,7 @@ named file-system directory and sub-directories DirectoryMatch Enclose directives that apply to -file-system directories matching a regular expression. +the contents of file-system directories matching a regular expression. <DirectoryMatch regex> ... </DirectoryMatch> server configvirtual host @@ -704,7 +705,7 @@ file-system directories matching a regular expression.

DirectoryMatch and </DirectoryMatch> are used to enclose a group - of directives which will apply only to the named directory, + of directives which will apply only to the named directory (and the files within), the same as Directory. However, it takes as an argument a regular expression. For example:

diff --git a/docs/manual/sections.xml b/docs/manual/sections.xml index bc22aa696d..a28d2c0e89 100644 --- a/docs/manual/sections.xml +++ b/docs/manual/sections.xml @@ -156,7 +156,8 @@ counterparts, apply directives to parts of the filesystem. Directives enclosed in a Directory section apply to the named filesystem directory and all subdirectories of that -directory. The same effect can be obtained using .htaccess files. For example, in the following configuration, directory indexes will be enabled for the /var/web/dir1 directory and all subdirectories.