mod_env
Overview
mod_env module
provides control of the environment that will be provided to CGI scripts
and SSI pages. Alternatively, environment
variables may be set or unset within the configuration process.
Quick start
Here's how you can enable some useful Ape modules with the help of mod_env:
# enables mod_linkfreeze
SetEnv mod_linkfreeze
# enables mod_hotlink
SetEnv mod_hotlink
Related articles and topics
Directives
PassEnv
Actually, PassEnv directive is left for Apache compatibility
and practically does not perform any actions. This happens because IIS, unlike
Apache, automatically adds the list of w3wp process environment
variables to the list of server variables.
Syntax
PassEnv env-variable [env-variable] ...
Example
PassEnv LD_LIBRARY_PATH
SetEnv
SetEnv directive sets an environment variable that is then
passed on to CGI scripts and SSI pages.
Syntax
SetEnv env-variable value
Example
SetEnv SPECIAL_PATH /foo/bin
UnsetEnv
UnsetEnv directive removes one or more environment variables from those
passed to CGI scripts and SSI pages.
Syntax
UnsetEnv env-variable [env-variable] ...
Example
# disable gzip
UnsetEnv gzip
|