<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<
TITLE>Apache module mod_env</
TITLE>
<!-- Background white, links blue (unvisited), navy (visited), red (active) --> <
H1 ALIGN="CENTER">Apache module mod_env</
H1>
<
p>This module provides for
passing environment variables to
CGI/
SSI scripts.</
p>
><
STRONG>Status:</
STRONG></
A> Base
><
STRONG>Module Identifier:</
STRONG></
A> env_module
><
STRONG>Compatibility:</
STRONG></
A> Available in Apache 1.1 and later.
<!-- XXX: Should mention mod_setenvif and the effect of suexec --> <
p>This module allows Apache's CGI and SSI environment to inherit
environment variables from the shell which invoked the httpd process.
CERN web-servers are able to do this, so this module is especially
useful to web-admins who wish to migrate from CERN to Apache without
rewriting all their scripts</
p>
<
LI><
A HREF="#passenv">PassEnv</
A>
<
LI><
A HREF="#setenv">SetEnv</
A>
<
LI><
A HREF="#unsetenv">UnsetEnv</
A>
<
H2><
A NAME="passenv">PassEnv</
A> directive</
H2>
><
STRONG>Syntax:</
STRONG></
A> PassEnv <
EM>variable variable ...</
EM><
BR>
><
STRONG>Context:</
STRONG></
A> server config, virtual host<
BR>
><
STRONG>Status:</
STRONG></
A> Base<
BR>
><
STRONG>Module:</
STRONG></
A> mod_env<
BR>
><
STRONG>Compatibility:</
STRONG></
A> PassEnv is only available in
Specifies one or more environment variables to pass to CGI scripts
from the server's own environment. Example:
<
H2><
A NAME="setenv">SetEnv</
A> directive</
H2>
><
STRONG>Syntax:</
STRONG></
A> SetEnv <
EM>variable value</
EM><
BR>
><
STRONG>Context:</
STRONG></
A> server config, virtual host<
BR>
><
STRONG>Status:</
STRONG></
A> Base<
BR>
><
STRONG>Module:</
STRONG></
A> mod_env<
BR>
><
STRONG>Compatibility:</
STRONG></
A> SetEnv is only available in
Sets an environment variable, which is then passed on to CGI
<
H2><
A NAME="unsetenv">UnsetEnv</
A> directive</
H2>
><
STRONG>Syntax:</
STRONG></
A> UnsetEnv <
EM>variable variable ...</
EM><
BR>
><
STRONG>Context:</
STRONG></
A> server config, virtual host<
BR>
><
STRONG>Status:</
STRONG></
A> Base<
BR>
><
STRONG>Module:</
STRONG></
A> mod_env<
BR>
><
STRONG>Compatibility:</
STRONG></
A> UnsetEnv is only available in
Removes one or more environment variables from those passed on to