- The <IfModule
- test>...</IfModule>
section is used to
- mark directives that are conditional on the presence of a
- specific module. The directives within an
- IfModule section are only
- processed if the test is true. If test is false,
- everything between the start and end markers is ignored.
-
- The test in the IfModule section directive can be one
- of two forms:
+ The <IfModule test>...</IfModule>
+ section is used to mark directives that are conditional on the presence of a
+ specific module. The directives within an IfModule section are only processed if the test
+ is true. If test is false, everything between the start and
+ end markers is ignored.
+
+ The test in the IfModule section directive can be one of two forms:
- - module name
+ - module name
- - !module name
+ - !module name
In the former case, the directives between the start and end
- markers are only processed if the module named module
- name is included in Apache -- either compiled in or
+ markers are only processed if the module named module
+ name is included in Apache -- either compiled in or
dynamically loaded using LoadModule. The second format
- reverses the test, and only processes the directives if module
- name is not included.
+ >LoadModule. The second format reverses the test,
+ and only processes the directives if module name is
+ not included.
- The module name argument is the file name of the
+
The module name argument is the file name of the
module, at the time it was compiled. For example,
mod_rewrite.c
. If a module consists of several
source files, use the name of the file containing the string
@@ -1082,7 +1094,7 @@
Include
Includes other configuration files from within
the server configuration files
-Include file-path|directory-path
+Include file-path|directory-path
server configvirtual host
directory
@@ -1102,37 +1114,37 @@
Examples:
-
- Include /usr/local/apache/conf/ssl.conf
- Include /usr/local/apache/conf/vhosts/
-
-
- Or, providing paths relative to your ServerRoot
- directory:
-
-
- Include conf/ssl.conf
- Include conf/vhosts/
-
-
- Make sure that an included directory does not contain any stray
- files, such as editor temporary files, for example, as Apache will
- attempt to read them in and use the contents as configuration
- directives, which may cause the server to fail on start up.
- 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 directory: /usr/local/apache/conf/vhosts
- Processing config file: /usr/local/apache/conf/vhosts/vhost1
- Processing config file: /usr/local/apache/conf/vhosts/vhost2
- Syntax OK
-
+
+ Include /usr/local/apache/conf/ssl.conf
+ Include /usr/local/apache/conf/vhosts/
+
+
+ Or, providing paths relative to your ServerRoot
+ directory:
+
+
+ Include conf/ssl.conf
+ Include conf/vhosts/
+
+
+ Make sure that an included directory does not contain any stray
+ files, such as editor temporary files, for example, as Apache will
+ attempt to read them in and use the contents as configuration
+ directives, which may cause the server to fail on start up.
+ Running apachectl configtest
will give you a list of
+ the files that are being processed during the configuration
+ check:
- This will help in verifying that you are getting only the files
- that you intended as part of your configuration.
+
+ root@host# apachectl configtest
+ Processing config directory: /usr/local/apache/conf/vhosts
+ Processing config file: /usr/local/apache/conf/vhosts/vhost1
+ Processing config file: /usr/local/apache/conf/vhosts/vhost2
+ Syntax OK
+
+
+ This will help in verifying that you are getting only the files
+ that you intended as part of your configuration.