mod_env.c
file, and
is compiled in by default. It provides for
passing environment variables to CGI/SSI scripts. Is is only available
in Apache 1.1 and later.
This directive controls whether all of the server's environment
variables should be made available to CGI scripts and SSI documents,
or only those explicitly named by
PassEnv
directives or otherwise
created by the server itself.
It is highly recommended that this functionality be enabled only with extreme caution and after careful examination of whether the entire environment is needed.
Because of security considerations, PassAllEnv
may
only appear inside
<Directory> and
<Location>
containers in the server configuration files.
Specifies one or more environment variables to pass to CGI scripts from the server's own environment. Example:
PassEnv LD_LIBRARY_PATH
Sets an environment variable, which is then passed on to CGI scripts. Example:
SetEnv SPECIAL_PATH /foo/bin
Removes one or more environment variables from those passed on to CGI scripts. Example:
UnsetEnv LD_LIBRARY_PATH