From 1b398e31a756d24199e41d90e2204126f3584326 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Thu, 30 Sep 2010 19:45:43 +0000 Subject: [PATCH] Adds caution about overusing IfModule, and mentions the -M flag in addition to the -l flag for determining what modules are loaded. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1003217 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/configuring.html.en | 15 ++++++++++----- docs/manual/configuring.xml | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/docs/manual/configuring.html.en b/docs/manual/configuring.html.en index 6258de26bd..11cee4bd17 100644 --- a/docs/manual/configuring.html.en +++ b/docs/manual/configuring.html.en @@ -49,7 +49,7 @@ Server.

added using the Include directive, and wildcards can be used to include many configuration files. Any directive may be placed in any of these configuration - files. Changes to the main configuration files are only + files. Changes to the main configuration files are only recognized by httpd when it is started or restarted.

The server also reads a file containing mime document types; @@ -79,13 +79,13 @@ Server.

If "ENVVAR" is the name of a valid environment variable, the value of that variable is substituted into that spot in the configuration file line, and processing continues as if that text - were found directly in the configuration file. (If the ENVVAR + were found directly in the configuration file. (If the ENVVAR variable is not found, the characters "${ENVVAR}" are left unchanged for use by later stages in the config file processing.)

Only environment variables defined before the server is started - can be used in expansions. Variables defined in the + can be used in expansions. Variables defined in the configuration file itself, for example with SetEnv, take effect too late to be used for expansions in the configuration file.

@@ -115,10 +115,15 @@ Server.

directive. Otherwise, httpd must be recompiled to add or remove modules. Configuration directives may be included conditional on a - presence of a particular module by enclosing them in an <IfModule> block.

+ presence of a particular module by enclosing them in an <IfModule> block. However, + <IfModule> blocks are not + required, and in some cases may mask the fact that you're missing an + important module.

To see which modules are currently compiled into the server, - you can use the -l command line option.

+ you can use the -l command line option. You can also + see what modules are loaded dynamically using the -M + command line option.

top

Scope of Directives

diff --git a/docs/manual/configuring.xml b/docs/manual/configuring.xml index 1c78223ea4..901ae7bb36 100644 --- a/docs/manual/configuring.xml +++ b/docs/manual/configuring.xml @@ -51,7 +51,7 @@ Server.

added using the Include directive, and wildcards can be used to include many configuration files. Any directive may be placed in any of these configuration - files. Changes to the main configuration files are only + files. Changes to the main configuration files are only recognized by httpd when it is started or restarted.

The server also reads a file containing mime document types; @@ -82,13 +82,13 @@ Server.

If "ENVVAR" is the name of a valid environment variable, the value of that variable is substituted into that spot in the configuration file line, and processing continues as if that text - were found directly in the configuration file. (If the ENVVAR + were found directly in the configuration file. (If the ENVVAR variable is not found, the characters "${ENVVAR}" are left unchanged for use by later stages in the config file processing.)

Only environment variables defined before the server is started - can be used in expansions. Variables defined in the + can be used in expansions. Variables defined in the configuration file itself, for example with SetEnv, take effect too late to be used for expansions in the configuration file.

@@ -130,10 +130,15 @@ Server.

Otherwise, httpd must be recompiled to add or remove modules. Configuration directives may be included conditional on a presence of a particular module by enclosing them in an IfModule block.

+ module="core" type="section">IfModule block. However, + IfModule blocks are not + required, and in some cases may mask the fact that you're missing an + important module.

To see which modules are currently compiled into the server, - you can use the -l command line option.

+ you can use the -l command line option. You can also + see what modules are loaded dynamically using the -M + command line option.

-- 2.50.1