Apache HTTP Server Version 2.0
This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at:
You may follow this link to go to the current version of this document.
Description: | Modifies the environment which is passed to CGI scripts and SSI pages |
---|---|
Status: | Base |
Module Identifier: | env_module |
Source File: | mod_env.c |
This module allows for control of the environment that will
be provided to CGI scripts and SSI pages. Environment variables
may be passed from the shell which invoked the httpd
process. Alternatively, environment variables may be set or unset within
the configuration process.
Description: | Passes environment variables from the shell |
---|---|
Syntax: | PassEnv env-variable [env-variable]
... |
Context: | server config, virtual host, directory, .htaccess |
Override: | FileInfo |
Status: | Base |
Module: | mod_env |
Specifies one or more environment variables to pass to CGI
scripts and SSI pages from the environment of the shell which
invoked the httpd
process.
PassEnv LD_LIBRARY_PATH
Description: | Sets environment variables |
---|---|
Syntax: | SetEnv env-variable value |
Context: | server config, virtual host, directory, .htaccess |
Override: | FileInfo |
Status: | Base |
Module: | mod_env |
Sets an environment variable, which is then passed on to CGI scripts and SSI pages.
SetEnv SPECIAL_PATH /foo/bin
Description: | Removes variables from the environment |
---|---|
Syntax: | UnsetEnv env-variable [env-variable]
... |
Context: | server config, virtual host, directory, .htaccess |
Override: | FileInfo |
Status: | Base |
Module: | mod_env |
Removes one or more environment variables from those passed on to CGI scripts and SSI pages.
UnsetEnv LD_LIBRARY_PATH