Set up environment variables on HTTP Server (powered by Apache)

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 Link outside Information Center 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:

  1. Click the Manage tab.
  2. Click the HTTP Servers subtab.
  3. Select your HTTP Server (powered by Apache) from the Server list.
  4. Select the context you want to work with from the Server area list.
  5. Expand Server Properties.
  6. Click Request Processing.
  7. Click the Custom Environment Variables tab in the form.
  8. 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.
  9. Enter the environment variable name in the Variable column.
  10. Enter the environment variable value in the Value column.
  11. Enter the environment variable attribute in the Attribute column.
  12. Enter the environment variable attribute value in the Attribute value column.
  13. Optional: Select to make the environment variable case sensitive in the Case sensitive column.
  14. Click Continue.
  15. Click OK.

See Environment variables on HTTP Server for a list of environment variables.