This scenario discusses how to create an HTTP Server (powered by
Apache).
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 for more information.
Scenario
The JKL Toy Company (a fictitious company)
wants to run a Web site with their iSeries™. The examples used in this scenario
show the Create New HTTP Server wizard being used to create an HTTP
Server (powered by Apache) instance called JKLTEST which will use all
IP addresses, port 1975 on an iSeries designated JKL_SERVER.
Start the IBM® Web Administration for i5/OS™ interface
- Start a Web
browser.
- Enter http://[iSeries_hostname]:2001 in the location or URL field
.
Example: http://jkl_server:2001
- Click IBM HTTP
Server for iSeries.
Create your HTTP Server (powered by Apache)
The IBM Web Administration for i5/OS interface allows you to create,
set up, and manage multiple servers.
- Click the Setup tab.
- Expand Common Tasks and Wizards.
- Click Create HTTP Server.
- Enter a descriptive, unique name in the Server name field.
Example:
JKLTEST
- Click Next.
- Accept the default value.
Example: /www/jkltest
- Click Next.
- Accept the default value.
Example: /www/jkltest/htdocs
- Click Next.
- Accept the default values or replace with your own unique IP address and
port.
Example: IP address All Addresses
Example: Port 1975
- Click Next.
- Optional: Select Yes to use an access log.
Select No if
you do not want to create an access log at this time. By default, the log
will be created for you.
- Click Next.
- Accept the default values to specify the length of time to keep the log
files or update with your preferences.
- Click Next.
- Review the displayed information. If any information is incorrect, click Back and
correct it.
- Click Finish to create your new HTTP Server (powered by Apache).
Restart your HTTP Server (powered by Apache)
Select
one of the following methods below:
Manage one server
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server from the Server list.
- Click the Stop icon if the server is running.
- Click the Start icon.
Manage all servers
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select All Servers from the Server list.
- Click the All HTTP Servers tab.
- Select your HTTP Server name in the table.
Example: JKLTEST
- Click Stop if the server is running.
- Click Start.
Note: If your HTTP Server (powered by Apache) does not start, see
Troubleshoot.
Test your HTTP Server (powered by Apache)
- Open a new Web browser.
- Enter http://[iSeries_hostname]:[port] in the location or URL field
.
Example: http://jkl_server:1975
Your new HTTP Server (powered by Apache) will display a generic HTML
file provided by the IBM Web Administration for i5/OS interface.
View your HTTP Server (powered by Apache)
configuration
Your configuration will look similar if you used the
given example in this and previous examples.
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server (powered by Apache) from the Server list.
Example:
JKLTEST
- Expand Tools.
- Click Display Configuration File.
Listen *:1975
DocumentRoot /www/jkltest/htdocs
ServerRoot /www/jkltest
Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes -MultiViews
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log combined
SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
<Directory />
Order Deny,Allow
Deny From all
</Directory>
<Directory /www/jkltest/htdocs>
Order Allow,Deny
Allow From all
</Directory>