This directive allows inclusion of other configuration files from within the
server configuration files.
Shell-style (fnmatch() ) wildcard characters can be used to
include several files at once, in alphabetical order. In addition, if Include points to a directory, rather than a file, Apache
will read all files in that directory and any subdirectory. But including entire
directories is not recommended, because it is easy to accidentally leave
temporary files in a directory that can cause httpd to fail.
The file path specified may be a fully qualified path (i.e. starting with a
slash), or may be relative to the ServerRoot directory.
Examples:
Include /usr/local/apache2/conf/ssl.conf Include
/usr/local/apache2/conf/vhosts/*.conf
Or, providing paths relative to your ServerRoot directory:
Include conf/ssl.conf Include conf/vhosts/*.conf
Running apachectl configtest will give you a list of the files
that are being processed during the configuration check:
root@host# apachectl configtest Processing config file:
/usr/local/apache2/conf/ssl.conf Processing config file:
/usr/local/apache2/conf/vhosts/vhost1.conf Processing config file:
/usr/local/apache2/conf/vhosts/vhost2.conf Syntax OK
|