JKL Toy Company adds a new directory to HTTP Server (powered by Apache)
In the IBM HTTP Server for i5/OS, you can add a new directory.
Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . IBM recommends 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 IBM Service for more information.
Scenario
The JKL Toy Company (a fictitious company) has a need to add a directory to their JKLTEST configuration. The JKL Web administrator wants to create a directory to keep online employee profile information, such as current projects and contact information. Due to the large number of employees, a separate directory will be created to contain the employee profile information. The new directory will be called profiles.
Prerequisites
- It is assumed you have read Scenarios for HTTP Server.
- It is assumed you have read and completed JKL Toy Company creates an HTTP Server (powered by Apache) or you have an existing HTTP Server (powered by Apache) configuration.
Start the IBM Web Administration for i5/OS interface
Enter your Webmaster user profile username and password when prompted.
- Start a Web browser.
- Enter http://[iSeries_hostname]:2001 in the location or URL field .
Example: http://jkl_server:2001
If you have changed your port number for the Web Administration for i5/OS interface, replace port 2001 with your port number.
- Click IBM® HTTP Server for iSeries.
If the Web Administration for i5/OS interface does not start, see Installing and testing the HTTP Server.
Create a new directory
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server (powered by Apache) from the Server list.
Example: JKLTEST
- Select Global configuration from the Server area list.
- Expand HTTP Tasks and Wizards.
- Click Add a Directory to the Web.
- Click Next.
- Select Static Web pages and files.
- Click Next.
- Optional: Accept the default or enter a new directory name.
Example: /www/jkltest/profiles/
- Click Next.
- Optional: Accept the default or enter a new alias name.
Example: /profiles/
- Click Next.
- Click Finish.
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.
If your HTTP Server (powered by Apache) does not start, see Troubleshooting.
Test your HTTP Server (powered by Apache)
- Open a new Web browser.
- Enter http://[iSeries_hostname]:[port]/[new_directory_alias]/ in the location or URL field.
Example: http://jkl_server:1975/profiles/
Your new directory 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.
Alias /profiles/ /www/jkltest/profiles/ 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/profiles> Order Allow,Deny Allow From all </Directory> <Directory /www/jkltest/htdocs> Order Allow,Deny Allow From all </Directory>
Parent topic:
Scenarios for HTTP Server