Create and configure an HTTP server instance

 

If you have an existing instance that you want to use with WebSphere Application Server, skip directly to Configure the HTTP server instance.

 

Create a new instance of IBM HTTP Server

To create a new instance of the IBM HTTP Server (powered by Apache) with a basic configuration, use the IBM HTTP Server for iSeries Configuration and Administration forms. Perform the steps below.

  1. Using a Web browser, go to the IBM HTTP Server Configuration and Administration forms.

    1. Open this URL in your browser:
        http://your.server.name:2001/
      where your.server.name is the name of your iSeries server.

    2. Enter a valid user ID and password for your iSeries server.

    3. At the iSeries Tasks page, select IBM HTTP Server for iSeries.

  2. The HTTP Server for iSeries page is displayed. To create a new HTTP server, click the Setup tab. Expand Common Tasks and Wizards and click Create New HTTP Server.

  3. Select HTTP server (powered by Apache), and click Next.

  4. In the right frame, type a name for the HTTP server instance. This name appears in the HTTPSVR subsystem when the job is running. Optionally, you can also enter a description for the HTTP server instance. Click Next.

    Note: Write down the HTTP server instance name to be used in later steps.

  5. Type the server root. You can use the default values, or you can specify another server root or document root directory. Click Next.

  6. In the next panel, set the document root. Click Next.

  7. Select the IP address and port.

    1. In the IP address field, select All addresses.

    2. The default port number is 80. You can specify a different port number for the HTTP server to use to process requests. Click Next.

      If you specify a port other than the default port, configure your virtual host Domain Name System (DNS) aliases in the administrative console to reflect your port number. For more information, see Virtual host.

      Write down the internal HTTP port number for use in later steps.

  8. Select a logging option. IBM recommends that you select Yes. The logs are stored in...

    /server_root/logs directory

  9. Specify how long you want to keep the error and access log files. Click Next.

  10. Review your settings. To create the HTTP server instance, click Finish. To make changes, click Back.

  11. After you click Finish, the configuration is created. The Manage Apache Server page is displayed.

 

Configure the HTTP server instance

After you create the HTTP server instance, configure the instance so that it works with WebSphere Application Server.

  1. Select...

    Manage tab | HTTP server instance | Server Properties | WebSphere Application Server

  2. Select the version of WebSphere Application Server to configure, and select the default WebSphere Application Server profile.

  3. Click OK to write the changes to the configuration file and return to the main configuration page.

If your web server does not show up on the web server list in the console, trying clicking Apply again, or, if that fails, create a new web server. It should show up in the WAS console web server list.

After it shows up, for a local config, regen the plugin, cycle the web server, and you should then be able to access WAS apps via the web server.