Setting up directory indexing and directory listing on HTTP Server

Directory index and directory listing for an IBM® HTTP Server for i instance can be set up using the IBM Web Administration for i interface.

A directory index or directory listing shows files and subdirectories that are contained in the directory. The server shows each subdirectory item or each file on a separate line along with information about each item. Use caution when configuring directory listing function, since it allows others to view your directory structure.

To enable directory listings do the following:

  1. Click the Manage tab.
  2. Click the HTTP Servers subtab.
  3. Select your HTTP Server from the Server list.
  4. Select the context you want to work with from the Server area list.
  5. Expand Server Properties.
  6. Click Directory Handling.
  7. Click the General Settings tab in the form.
  8. Select Enabled for your HTTP Server to always search for a welcome or index file name.
  9. Select Display directory listings for all directories.
  10. Click Apply.

Once directory listings are enabled, you can customize the appearance of the directory list (also called fancy indexing). Directory listing is optional.

To customize the appearance of your directory list, do the following:

  1. Click the Appearance tab in the form.
  2. Select the options for your directory listing. View the help text for specific field values.
  3. Click OK.