From: Stefan Fritsch Date: Fri, 21 Jan 2011 11:32:13 +0000 (+0000) Subject: Add more documentations for Define'd variables X-Git-Tag: 2.3.11~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b12af2b0d1481382db01e391e9974f7c12ee16c7;p=apache Add more documentations for Define'd variables git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1061758 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/configuring.html.en b/docs/manual/configuring.html.en index 3bf15b275d..eb0f8ab1fa 100644 --- a/docs/manual/configuring.html.en +++ b/docs/manual/configuring.html.en @@ -74,24 +74,28 @@ Server.

and white space occurring before a directive are ignored, so you may indent directives for clarity.

-

The values of shell environment variables can be used in - configuration file lines using the syntax ${ENVVAR}. - If "ENVVAR" is the name of a valid environment variable, the value +

The values of variables defined with the + Define of or shell environment variables can be used in + configuration file lines using the syntax ${VAR}. + If "VAR" is the name of a valid 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 - 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 - configuration file itself, for example with SetEnv, take effect too late to be - used for expansions in the configuration file.

+ were found directly in the configuration file. Variables defined with + Define take precedence over shell + environment variables. If the "VAR" variable is not found, the characters + ${VAR} are left unchanged, and a warning is logged. Variable + names may not contain colon ":" characters, to avoid clashes with + RewriteMap's syntax.

+ +

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

The maximum length of a line in the configuration file, after - environment-variable substitution, joining any continued lines and - removing leading and trailing white space, is 8192 characters.

+ variable substitution, joining any continued lines and removing leading + and trailing white space, is 8192 characters.

You can check your configuration files for syntax errors without starting the server by using apachectl diff --git a/docs/manual/configuring.xml b/docs/manual/configuring.xml index 901ae7bb36..13583a4b4c 100644 --- a/docs/manual/configuring.xml +++ b/docs/manual/configuring.xml @@ -77,25 +77,28 @@ Server.

and white space occurring before a directive are ignored, so you may indent directives for clarity.

-

The values of shell environment variables can be used in - configuration file lines using the syntax ${ENVVAR}. - 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 - 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 +

The values of variables defined with the Define of or shell environment variables can + be used in configuration file lines using the syntax ${VAR}. + If "VAR" is the name of a valid 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. + Variables defined with Define take + precedence over shell environment variables. + If the "VAR" variable is not found, the characters ${VAR} + are left unchanged, and a warning is logged. + Variable names may not contain colon ":" characters, to avoid clashes with + RewriteMap's syntax.

+ +

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

+ module="mod_env">SetEnv, take effect too late to be used for + expansions in the configuration file.

The maximum length of a line in the configuration file, after - environment-variable substitution, joining any continued lines and - removing leading and trailing white space, is 8192 characters.

+ variable substitution, joining any continued lines and removing leading + and trailing white space, is 8192 characters.

You can check your configuration files for syntax errors without starting the server by using apachectl diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en index 070a363e90..d012303757 100644 --- a/docs/manual/mod/core.html.en +++ b/docs/manual/mod/core.html.en @@ -621,6 +621,9 @@ which no other media type configuration could be found. </IfDefine>

+

Variable names may not contain colon ":" characters, to avoid clashes + with RewriteMap's syntax.

+
top

<Directory> Directive

diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index eaa6e4bc0b..d5f114b194 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -565,6 +565,9 @@ which no other media type configuration could be found.   Define SSL
</IfDefine>
+ +

Variable names may not contain colon ":" characters, to avoid clashes + with RewriteMap's syntax.