Troubleshooting
Problem
This document shows how to set up your Apache HTTP server to have a directory listing of all the files rather than serving the index.html page.
Resolving The Problem
The output of this document will show a directory listing similar to this:
The steps to accomplish this in your HTTP Admin are as follows.
To browse all the files in a directory using HTTP Apache:
1. | Click the Manage tab. |
2. | Click the HTTP Servers subtab. |
3. | Select your HTTP server (powered by Apache) from the Server list. |
4. | Select the context you want to work with from the Server area list (in other words, /www/apachedft/htdocs). |
5. | Expand Server Properties. |
6. | Click General Server Configuration. |
7. | Click the Welcome Page tab in the form. |
8. | Select Enabled to have the Welcome page displayed. |
9. | Select the default action the server will take if the welcome file or index file does not exist. To browse all the files in the directory, select Display directory listing for all directories. |
10. | Click Apply. Note: Make sure that you do not have the default name of index.htmlin in the /www/apachedft/htdocs directory or the directory you are working with; otherwise, all the files will not be displayed. Rename it to index1.html, for example. |
11. | Stop and restart your http server. All the files will be shown when you go to http://myinstancename/. |
The Apache configuration of the context with the directory browsing will look like this:
Apache 2.2.x:
<Directory /www/apachedft/htdocs>
Order Allow,Deny
Allow From all
Options +Indexes
IndexOptions -SelectiveDirAccess
</Directory>
Apache 2.4.x:
<Directory /www/apachedft/htdocs>
Require all granted
Options +Indexes
IndexOptions -SelectiveDirAccess
</Directory>
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]
Historical Number
523774372
Was this topic helpful?
Document Information
Modified date:
11 November 2019
UID
nas8N1012960