To use IBM Cognos product documentation, you must enable JavaScript in your browser.

Changing the Gateway 

To improve Web server performance, you can configure IBM Cognos 8 to use alternate gateways that replace the default CGI program. You can use one of the following gateways:

There is no additional Web server configuration required to use ISAPI. To access IBM Cognos 8 components using ISAPI, in IBM Cognos Configuration, change the cognos.cgi portion of the Gateway URI property to cognosisapi.dll. Then specify the ISAPI URI, http://host_name/cognos8/isapi, in your browser.

Before you change the gateway, we recommend that you first ensure that the default CGI gateway and your configuration work in your environment.

Configure the Gateway for IBM Cognos Apache Web Server Module 

IBM Cognos 8 provides three Apache modules. The IBM Cognos Apache module requires Apache Server 1.3.x and the IBM Cognos Apache 2 module requires Apache Server 2.0.x. The IBM Cognos Apache 2.2 module requires Apache Server 2.2.x.

Steps
  1. Stop Apache Web Server.

  2. Append the c8_location/cgi-bin directory to the appropriate environment variable:

  3. On HP-UX PA-RISC, do the following:

  4. Go to the Apache_installation/conf directory.

  5. Open the httpd.conf file in an editor.

  6. Add the following to the end of the load module list:

    LoadModule cognos_module "c8_location/cgi-bin/module.suffix"

    where module is as follows:

    Version

    Module

    Apache 1.3

    mod_cognos

    Apache 2.0

    mod2_cognos

    Apache 2.2

    mod2_2_cognos

    and suffix is as follows:

    Operating system

    Suffix

    Windows

    dll

    Solaris, AIX

    so

    HP-UX PA-RISC

    sl

    HP-UX IA, Linux

    so

  7. For Apache 1.3, add the following to the end of the add module list:

    AddModule mod_cognos.cpp

  8. Add the following to the aliases section:

    ScriptAlias /cognos8/cgi-bin "c8_location/cgi-bin"

    Alias /cognos8 "c8_location/webcontent"

    <Directory "c8_location/webcontent">

    Options Indexes MultiViews

    </Directory>

    The <Directory> directive is optional.

    Tip: Ensure that you define the cognos8/cgi-bin alias before the cognos8 alias.

  9. For Apache 2.2, add the following security rules:

    ScriptAlias /cognos8/cgi-bin " c8_location/cgi-bin"

    Alias /cognos8 "c8_location/webcontent"

    <Directory "c8location/webcontent">

    Options Indexes MultiViews

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

    </Directory>

    <Directory "c8location/cgi-bin">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

    </Directory>

  10. For Apache 1.3 and Apache 2.0, add the following to the server status reports section:

    <Location /cognos8/cgi-bin/cognos_module>
      SetHandler cognos-handler
    </Location>

    For Apache 2.2.x, add the following to the server status reports section:

    <Location /cognos8/cgi-bin/cognos_module>
      SetHandler cognos-handler
    Order allow,deny
    Allow from all
    </Location>

    Enter the code exactly as specified. The "cognos_module" string refers to the module that you loaded in step 6.

  11. For Apache 1.3 and Apache 2.0, to enable the gateway diagnostic page, add the following to the server status reports section:

    <Location /cognos8/cgi-bin/diag_cognos_module>
      SetHandler cognos-handler
    </Location>

    For Apache 2.2.x, add the following to the server status reports section:

    <Location /cognos8/cgi-bin/cognos_module>
      SetHandler cognos-handler
    Order allow,deny
    Allow from all
    </Location>

    Enter the code exactly as specified. The diag_ string is required and the "cognos_module" string refers to the module that you loaded in step 6.

  12. For Apache 1.3, on Windows, Solaris, and AIX, add the following to the user directory section:

    <IfModule mod_cognos.cpp>

      CGIBinDir "c8_location/cgi-bin"

    </IfModule>
  13. For Apache 2.0, add the following to the user directory section:

    <IfModule mod_cognos.c>

      CGIBinDir "c8_location/cgi-bin"

    </IfModule>

    For Apache 2.2.x, add the following to the user directory section:

    <IfModule mod2_2_cognos.c.c>

      CGIBinDir "c8_location/cgi-bin"

    </IfModule>
  14. Save and close the file.

  15. For Apache 2.0, on HP-UX, enable searching for LD_LIBRARY_PATH by running the following command in the Apache_installation/bin directory:

    chatr +s enable +b enable httpd

  16. Start Apache Web Server.

  17. In IBM Cognos Configuration, configure the Gateway URI property to use the apache_mod gateway:

    http://host_name:port/cognos8/cgi-bin/module.suffix

    where module and suffix match the values shown previously.

  18. Users must then specify the Apache module URI in their browser, as follows

    http://host_name/cognos8/module.suffix

    where module and suffix match the values that you configured for the Gateway URI in IBM Cognos Configuration.

Configure the Servlet Gateway 

If you configure the IBM Cognos Servlet Gateway to run on a supported application server, your environment does not require a Web server. The application server and the IBM Cognos Servlet Gateway replace the functions provided by a Web server and other IBM Cognos gateways.

Before you build and deploy the IBM Cognos Servlet Gateway, ensure the following:

To set up the IBM Cognos Servlet Gateway to run on your application server, do the following:

      

Create a separate JVM instance, if necessary.

If you plan to run IBM Cognos 8 and the IBM Cognos Servlet Gateway on the same application server, the servlet gateway must be deployed to a separate JVM instance.

      

Check that IBM Cognos components are properly set up.

      

Set environment variables.

      

Update the Java environment.

      

Configure IBM Cognos Servlet Gateway to run on the application server.

      

Change the application server startup script, if necessary.

      

Configure application server properties and deploy IBM Cognos Servlet Gateway.

      

Enable SSL, if required.

      

Configure the Web server.

You can then access IBM Cognos 8 components using the IBM Cognos Servlet Gateway, by entering the gateway URI. For example,

http[s]:host_name:port/ServletGateway

The IBM Cognos Servlet Gateway URI is case-sensitive.