Module mod_env

Important: Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . It is recommended that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm Link outside Information Center for more information.

Summary

This module allows the HTTP Server CGI and SSI environment to inherit environment variables.

Directives

PassEnv

Module: mod_env
Syntax: PassEnv variable [variable ...]
Default: none
Context: server config, virtual host, directory, .htaccess
Override: none
Origin: Apache
Example: PassEnv LD_LIBRARY_PATH

The PassEnv directive specifies one or more environment variables to pass to the CGI scripts. The variables originate from the server's own environment. See Environment variables on HTTP Server for more information.

Parameter: variable
  • The variable parameter is any valid environment variable.

SetEnv

Module: mod_env
Syntax: SetEnv variable [value]
Default: none
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Origin: Apache
Examples:
  • SetEnv SPECIAL_PATH /QIBM/bin
  • SetEnv QIBM_CGI_LIBRARY_LIST "MIME;CGIURL;CGILIBL"

The SetEnv directive allows you to set an environment variable that is passed on to CGI scripts. See Environment variables on HTTP Server for more information.

Parameter One: variable
  • The variable parameter is any valid EBCDIC characters except the equal sign (=), the null-terminator (X'00') and blank (X'40'). The name must be enclosed in quotation marks if it contains any non-alphanumeric character.
Parameter Two: [value]
  • The [value] parameter is optional and can include partial URLs. The case is preserved when lowercase characters are specified. Valid values include all EBCDIC characters. The value must be enclosed in quotation marks if it contains any non-alphanumeric character or blanks. Lowercase characters for the library names will not work if this directive is used to change the library list. When changing the library list values, the libraries need to be separated by a semicolon.

UnsetEnv

Module: mod_env
Syntax: UnsetEnv variable [variable ...]
Default: none
Context: server config, virtual host, directory, .htaccess
Override: none
Origin: Apache
Example: UnsetEnv LD_LIBRARY_PATH

The UnsetEnv directive removes one or more environment variables from those passed on to CGI scripts. See Environment variables on HTTP Server for more information.

Parameter: variable
  • The variable parameter is any valid environment variable.