Setting up environment variables on HTTP Server

Set up environment variables for CGI programs running in an HTTP Server instance using the IBM® Web Administration for i interface.

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:

  1. Click the Manage tab.
  2. Click the HTTP Servers subtab.
  3. Select your HTTP Server from the Server list.
  4. Select the context you want to work with from the Server area list.
  5. Expand Server Properties.
  6. Click General Server Configuration.
  7. Click the Custom Environment Variables tab in the form.
  8. The environment variables can be set up based on a conditional attribute or expression
    • 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 Add under the Environment variables based on expression table.

    Enter the environment variable name in the Variable column.

    Optional: Enter the environment variable value in the Value column.

    Enter the expression in the Expression column.

  9. Click Continue.
  10. Click OK.

See Environment variables set by HTTP Server for a list of environment variables.