Prerequisite: WebDocs iSeries version 1.44 or above.
To set up thumbnail display in WebDocs iSeries:
- Set the DOCTHUMBS data area to *YES:
CHGDTAARA DTAARA(RJSIMAGE/DOCTHUMBS) VALUE('*YES')
- Set the default icon size in the DOCICONSIZ data area. The default value is 32x32 pixels.
For example: To se the icon size to 64x64 pixels, use:
CHGDTAARA DTAARA(RJSIMAGE/DOCICONSIZ) VALUE('height="64" width="64"')
- To make sure that GIF, JPG, and BMP documents are rendered correctly, add the following directives to your web server configuration in the following order:
- For the classic HTTP server set-up (V4R3 - V5R2):
- PASS /RJSIMAGE/RJSIMAGEDOC/* /RJSIMAGEDOC/*
- PASS /RJSIMAGE/* /RJSIMAGE/*
- For the Apache HTTP server set-up (V5R1 and above):
Note: This example assumes the web server instance is APACHEDFT. Substitute your web server instance name anywhere you see APACHEDFT in this example.
Warning: Directly exposing an IFS folder to users in this way creates a minor security risk.
- Go to the APACHEDFT configuration folder:
WRKLNK OBJ('/www/apachedft/conf/*')
- For the Apache configuration file httpfd.conf, type 2 to edit.
- To set the web server to use /rjsimage/rjsimagedoc as the physical /rjsimagedoc IFS folder and display thumbnails, insert the following as the first line in the configuring file:
Alias /rjsimage/rjsimagedoc/ /rjsimagedoc/
- Before the code block from the initial Apache set-up, insert the following IFS directory permission data block:
AllowOverride None
order allow,deny
allow from all
- End the Apache web server instance:
ENDTCPSVR SERVER(*HTTP) HTTPSVR(APACHEDFT)
- Wait 20-30 seconds for all related jobs to end.
- Restart the Apache web server instance:
STRTCPSVR SERVER(*HTTP) HTTPSVR(APACHEDFT)
The new web server directives now take effect.
Last Modified On:
No, open a new Support Case