Apache httpd.conf Directory Wildcard Matching
erics, Posted September 27th, 2009 at 2:28:50pm
<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 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 any single character, and *
matches any sequences of characters. You may also use []
character ranges. None of the wildcards match a `/’ character, so<Directory /*/public_html>
will not match /home/user/public_html
, but <Directory /home/*/public_html>
will match.
Leave Your Comment
All fields marked with "*" are required.