Apache module mod_env
This module is contained in the mod_env.c
file, and
is not compiled in by default. It provides for
passing environment variables to CGI/SSI scripts.
Summary
This module allows Apache's CGI and SSI environment to inherit
environment variables from the shell which invoked the httpd process.
CERN webservers are able to do this, so this module is especially
useful to webadmins who wish to migrate from CERN to Apache without
rewriting all their scripts
Directives
PassEnv
Syntax: PassEnv variable
Context: server config, virtual host
Status: Base
Module: mod_env
Passes an environment variable to CGI scripts from the servers's own
environment. Example:
PassEnv LD_LIBRARY_PATH
SetEnv
Syntax: SetEnv variable value
Context: server config, virtual host
Status: Base
Module: mod_env
Sets an environment variable, which is then passed on to CGI
scripts. Example:
SetEnv SPECIAL_PATH /foo/bin