56 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
Avoiding application server restarts
In this example, a version number is added at the end of each file name. Every time you
modify your home page or template file, you need to restart the application server to pick up
the latest versions of the files. To avoid restarting the application server, add a version
number to the end of the file name. When you make a change to the file, rename the file with
an updated version number (for example, home2.htm), update the home page or template file
customization setting, and delete the old file.
Ensuring proper file authorities
The following profiles require *RX authority to the home page file, the template file, and the
directories that contain these files:
*PUBLIC
QEJBSVR (for WebSphere Application Server)
QTMHTTP (for Tomcat)
To verify the authority, start a 5250 session, run the following command, and select option 9:
WRKLNK OBJ('/boats/homepage')
3.5.2 Serving images
If your home page or template file contains images, you need to update your HTTP server
configuration to locate the images. The following sections explain how to change the HTTP
server configuration for both the IBM HTTP Server for iSeries (original) and the IBM HTTP
Server for iSeries (powered by Apache) by each version.
IBM HTTP Server for iSeries (original) V5R2
1. Open your browser and go to:
http://your_server:2001
2. Select IBM HTTP Server for iSeries.
3. In the Server list, select
your HTTP server
.
4. Select Request Processing-> Request Routing.
5. You must insert your URL template path before the value /*, which is the default. This is
the default pass. Any pass after this one is not processed. You can insert before other
passes if you want your pass to be processed before them.
6. In the Action field, choose PASS.
7. For the URL template field, enter the path you use to access images from within your
HTML file, for example: /boats/*.
8. For the Replacement file path field, enter the actual location of your image directory, for
example: /boats/homepage/*
.
9. Click the Apply button.
10.In the Server list, select All servers.
11.Select your HTTP server.
12.Click the Stop button.
13.Click the Refresh button until your server is listed as
Stopped.
Tip: To avoid restarting the application server, use a version number at the end of your file
names and update the customization settings every time you change the files.
Chapter 3. Using iSeries Access for Web 57
14.Enter -nolastmod in the Server startup parameters field.
15.Click the Start button.
IBM HTTP Server for iSeries V5R1
1. Open your browser and go to:
http://system:2001
2. Select IBM HTTP Server for iSeries-> Configuration and Administration->
Configuration.
3. In the Configuration for server list, select
your HTTP server
.
4. Select Request Processing-> Request Routing.
5. You must insert your URL template path before the value /*, which is the default. This is
the default pass. Any pass after this one is not processed. You can insert before other
passes if you want your pass to be processed before them.
6. In the Action field, choose PASS.
7. For the URL template field, enter the path you use to access images from within your
HTML file, for example: /boats/*
.
8. For the Replacement file path field, enter the actual location of your image directory, for
example: /boats/homepage/*
.
9. Click the Apply button.
10.Select Administration-> Manage HTTP Servers.
11.Select
your HTTP server
.
12.Click the Stop button.
13.Click the Refresh button until your server is listed as
Stopped.
14.Enter -nolastmod in the Server startup parameters field.
15.Click the Start button.
IBM HTTP Server for iSeries (powered by Apache) V5R2
1. Open your browser and go to:
http://system:2001
2. Select IBM HTTP Server for iSeries
3. In the Server list, select
your HTTP server
.
4. For the Server area, choose Global configuration.
5. Click Tasks and Wizards-> Serve New Directory wizard. Click the Next button.
6. Choose Static web pages and files. Click the Next button.
7. In the Name field, enter the actual location of your image directory, for example:
/boats/homepage/. Click the Next button.
8. In the Alias field, enter the path you use to access images from within your HTML file, for
example: /boats/. Click the Next button.
9. Click the Finish button.
10.Click the OK button.
11.In the Server list, select All servers.
12.Select your HTTP server.

Get iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.