From: Stefan Fritsch
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.
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.
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 ${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 ${VAR}
+ are left unchanged, and a warning is logged.
+ Variable names may not contain colon ":" characters, to avoid clashes with
+
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
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.
Variable names may not contain colon ":" characters, to avoid clashes
+ with