This topic provides information about how to set up environment
variables on your HTTP Server to pass information about CGI requests to the
CGI programs.
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 for more information.
When the server runs a CGI program, it uses environment variables to pass
information about the request and the server. Configuring environment variables
allows you to specify which variables the CGI programs inherits.
To specify environment variables, do the following:
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server (powered by Apache) from the Server list.
- Select the context you
want to work with from the Server area list.
- Expand Server Properties.
- Click Request Processing.
- Click the Custom Environment Variables tab in the form.
- Click Add under the Environment variables based on a conditional
attribute table.
Note: Select an environment variable from the table
to redefine or remove an existing environment variable.
- Enter the environment variable name in the Variable column.
- Enter the environment variable value in the Value column.
- Enter the environment variable attribute in the Attribute column.
- Enter the environment variable attribute value in the Attribute value column.
- Optional: Select to make the environment variable case sensitive
in the Case sensitive column.
- Click Continue.
- Click OK.
See Environment variables on HTTP Server for a list of environment
variables.