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.
- Using a Web browser, go to the IBM HTTP Server Configuration and Administration forms.
- Open this URL in your browser:
http://your.server.name:2001/
where your.server.name is the name of your iSeries server.
- Enter a valid user ID and password for your iSeries server.
- At the iSeries Tasks page, select IBM HTTP Server for iSeries.
- 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.
- Select HTTP server (powered by Apache), and click Next.
- 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.
- Type the server root. You can use the default values, or you can specify another server root or document root directory. Click Next.
- In the next panel, set the document root. Click Next.
- Select the IP address and port.
- In the IP address field, select All addresses.
- 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.
- Select a logging option. IBM recommends that you select Yes. The logs are stored in...
/server_root/logs directory
- Specify how long you want to keep the error and access log files. Click Next.
- Review your settings. To create the HTTP server instance, click Finish. To make changes, click Back.
- After you click Finish, the configuration is created. The Manage Apache Server page is displayed.
After you create the HTTP server instance, configure the instance so that it works with WebSphere Application Server.
- Select...
Manage tab | HTTP server instance | Server Properties | WebSphere Application Server
- Select the version of WebSphere Application Server to configure, and select the default WebSphere Application Server profile.
- 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.