Apache HTTP Сервер Версия 2.2
Apache Module mod_env
Описание: | Modifies the environment which is passed to CGI scripts and SSI pages |
---|---|
Статус: | Base |
Идентификатор модуля: | env_module |
Исходный файл: | mod_env.c |
Summary
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.
PassEnv Директива
Описание: | Passes environment variables from the shell |
---|---|
Синтаксис: | PassEnv env-variable [env-variable]
... |
Контекст: | server config, virtual host, directory, .htaccess |
Перекрывает: | FileInfo |
Статус: | Base |
Модуль: | 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
SetEnv Директива
Описание: | Sets environment variables |
---|---|
Синтаксис: | SetEnv env-variable value |
Контекст: | server config, virtual host, directory, .htaccess |
Перекрывает: | FileInfo |
Статус: | Base |
Модуль: | mod_env |
Sets an environment variable, which is then passed on to CGI scripts and SSI pages.
Пример
SetEnv SPECIAL_PATH /foo/bin
UnsetEnv Директива
Описание: | Removes variables from the environment |
---|---|
Синтаксис: | UnsetEnv env-variable [env-variable]
... |
Контекст: | server config, virtual host, directory, .htaccess |
Перекрывает: | FileInfo |
Статус: | Base |
Модуль: | mod_env |
Removes one or more environment variables from those passed on to CGI scripts and SSI pages.
Пример
UnsetEnv LD_LIBRARY_PATH