From: Stefan Fritsch
The Include
directive will
- fail with an error if a wildcard is specified for a
- filename or directory component of the patch, but no file or directory
- matches the wildcard. The same is true if a wildcard is specified for a
- directory component of the path, and a mathing directory does not contain
- the filename specified in the path. The
- IncludeOptional
directive can be
- used instead, if non-matching wildcards should be ignored.
IncludeOptional
+ directive can be used if non-matching wildcards should be ignored.
The file path specified may be an absolute path, or may be relative
to the ServerRoot
directory.
Wildcards may be included in the directory or file portion of the path. This example will fail if there is no subdirectory in conf/vhosts - or if a subdirectory of conf/vhosts does not contain at least one *.conf - file:
+ that contains at least one *.conf file:
Include conf/vhosts/*/*.conf
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index 6ea0fa16c7..edc0df35c4 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -2013,13 +2013,9 @@ wildcard matching available in 2.3.6 and later
pattern, such as *.conf, for example.
The
The file path specified may be an absolute path, or may be relative
to the
Wildcards may be included in the directory or file portion of the path. This example will fail if there is no subdirectory in conf/vhosts - or if a subdirectory of conf/vhosts does not contain at least one *.conf - file:
+ that contains at least one *.conf file: