diff options
author | Graham Leggett <minfrin@apache.org> | 2010-02-13 20:48:04 +0100 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2010-02-13 20:48:04 +0100 |
commit | 17e9e4bb1551d8b48ea73616a7c5d272cf36ccd6 (patch) | |
tree | 1efbfbb98f7f8418dd71dc998ced912bcba00394 /docs/manual/mod/core.xml | |
parent | Updates. (diff) | |
download | apache2-17e9e4bb1551d8b48ea73616a7c5d272cf36ccd6.tar.xz apache2-17e9e4bb1551d8b48ea73616a7c5d272cf36ccd6.zip |
Support wildcards in both the directory and file components of
the path specified by the Include directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@909878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/core.xml')
-rw-r--r-- | docs/manual/mod/core.xml | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 1f76840bff..f6fb47566a 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -1541,23 +1541,33 @@ the server configuration files</description> <contextlist><context>server config</context><context>virtual host</context> <context>directory</context> </contextlist> -<compatibility>Wildcard matching available in 2.0.41 and later</compatibility> +<compatibility>Wildcard matching available in 2.0.41 and later, directory +wildcard matching available in 2.3.6 and later</compatibility> <usage> <p>This directive allows inclusion of other configuration files from within the server configuration files.</p> <p>Shell-style (<code>fnmatch()</code>) wildcard characters can be used - in the filename part of the path (not the directory part) to - include several files at once, in alphabetical order. In - addition, if <directive>Include</directive> points to a directory, - rather than a file, Apache will read all files in that directory - and any subdirectory. However, including entire directories is not - recommended, because it is easy to accidentally leave temporary - files in a directory that can cause <program>httpd</program> to - fail. Instead, we encourage you to use the wildcard syntax shown - below, to include files that match a particular pattern, such as - *.conf, for example.</p> + in the filename or directory parts of the path to include several files + at once, in alphabetical order. In addition, if + <directive>Include</directive> points to a directory, rather than a file, + Apache will read all files in that directory and any subdirectory. + However, including entire directories is not recommended, because it is + easy to accidentally leave temporary files in a directory that can cause + <program>httpd</program> to fail. Instead, we encourage you to use the + wildcard syntax shown below, to include files that match a particular + pattern, such as *.conf, for example.</p> + + <p>When a wildcard is specified for a file or directory component of the + path, and no file or directory matches the wildcard, the + <directive module="core">Include</directive> directive will be + silently ignored. When a directory or file component of the path is + specified exactly, and that directory or file does not exist, + <directive module="core">Include</directive> directive will fail with an + error saying the file or directory cannot be found. This removes the need + for placeholder files to exist so that at least one file or directory is + found by the wildcard.</p> <p>The file path specified may be an absolute path, or may be relative to the <directive module="core">ServerRoot</directive> directory.</p> @@ -1576,6 +1586,15 @@ the server configuration files</description> Include conf/ssl.conf<br /> Include conf/vhosts/*.conf </example> + + <p>Wildcards may be included in the directory or file portion of the + path:</p> + + <example> + Include conf/vhosts/*/vhost.conf + Include conf/vhosts/*/*.conf + </example> + </usage> <seealso><program>apachectl</program></seealso> |