Prerequisite: WebDocs iSeries version 1.44 or above.
 
To set up thumbnail display in WebDocs iSeries:
  1. Set the DOCTHUMBS data area to *YES:

    CHGDTAARA DTAARA(RJSIMAGE/DOCTHUMBS) VALUE('*YES') 

  2. 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"') 

  3. 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):
      1. PASS /RJSIMAGE/RJSIMAGEDOC/* /RJSIMAGEDOC/*
      2. 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.

      1. Go to the APACHEDFT configuration folder:

        WRKLNK OBJ('/www/apachedft/conf/*')

      2. For the Apache configuration file httpfd.conf, type 2 to edit.
      3. 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/ 

      4. 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
                         

      5. End the Apache web server instance:

        ENDTCPSVR SERVER(*HTTP) HTTPSVR(APACHEDFT)

      6. Wait 20-30 seconds for all related jobs to end.
      7. Restart the Apache web server instance:

        STRTCPSVR SERVER(*HTTP) HTTPSVR(APACHEDFT)

        The new web server directives now take effect.

Still have questions? We can help. Submit a case to technical support

Last Modified On:
You don't have the appropriate permissions.
No, open a new Support Case