(iSeries)
Create and configure HTTP server instances on IBM i
Learn how to create and configure an IBM HTTP Server instance.
This article assumes that we have started the *Admin instance of IBM HTTP Server. See Starting the *ADMIN instance of IBM HTTP Server on IBM i for more information.
Use this procedure to create and configure an instance of IBM HTTP Server.
If we have an existing instance to use with WebSphere Application Server, skip directly to the configuration step.
Tasks
- 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 IBM i configuration and administration forms.
Perform the following steps:
- Use a web browser, go to the IBM HTTP Server for IBM i configuration and administration forms.
- Open this URL in your browser:
http://your.server.name:2001/The your.server.name variable is the name of our IBM i server.- Enter a valid user ID and password for our IBM i server.
- Select IBM Web Administration for IBM i at the IBM i Tasks page.
- The IBM Web Administration for IBM i page is displayed.
- To create a new HTTP server, click the Setup tab.
- Expand Common Tasks and Wizards.
- Click Create New HTTP Server.
- Select HTTP server (powered by Apache), then click Next.
- Type a name for the HTTP server instance and an optional description, then click Next.
The name appears in the HTTPSVR subsystem when the job is running.
Write down the HTTP server instance name for use in later steps.
- Type the server root, then click Next.
Use default values or we can specify another server root or document root directory.
- Set the document root in the next panel, then click Next.
- Select the IP address and port.
- Select All addresses in the IP address field.
- Accept the default port, 80, for the port number that the HTTP Server instance uses to process requests or type a unique port number, then click Next.
If we 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, read the Virtual hosts article.
Write down the internal HTTP port number for use in later steps.
- Select a logging option.
IBM recommends that we select Yes. Logs are stored in the /server_root/logs directory, where server_root is the server root that we set earlier.
- Specify how long we want to keep the error and access log files, then click Next.
- Review our settings. To create the HTTP server instance, click Finish. To make changes, click Back.
- After clicking Finish, the configuration is created. The Manage Apache Server page is displayed.
- Configure the HTTP server instance
After creating the HTTP server instance, configure the instance so that it works with WAS.
- Click the Manage tab. In the Server list, select the HTTP server instance to manage.
- With the HTTP server selected, expand Server Properties. Click WAS. Select the version of WAS to configure, and select the default WAS profile.
- Click OK to write the changes to the configuration file and return to the main configuration page.
What to do next
We have completed step 3 of 5.
Go to Starting WAS on IBM i to continue the installation.
Configure IBM HTTP Server for IBM i