The functionality that shows the list of file names in the directory on the Web browser is called the Directory Index. Define the following directives to enable the directory index functionality:
Options + Indexes |
It is unsafe to display all the files from security point of view. In IndexIgnore directive, you need to specify files that are not to be displayed in the index.
However, even if you specify Options + Indexes, when the files (by default index.html) specified in the DirectryIndex directive are under the directory, specified files are displayed.
When the directory index format is to be displayed, specify the following directive:
IndexOptions + FancyIndexing |
Specify the detailed settings of the format display functionality in the IndexOptions directive and the AddIcon directive. The following figure shows the window displayed by the directory index functionality and the contents set in each directive:
Figure 4-6 Definition of the format display functionality
Note that file names with multi-byte characters cannot be displayed.
If the character sets used in the files specified in the HeaderName directive or the ReadmeName directive differ from the default character set (for the UNIX version: ISO-8859-1; for the Windows version: UTF-8), garbled text is displayed in the directory index. If this happens, specify the character sets used in the files specified in the HeaderName directive or ReadmeName directive by using the Charset option of the IndexOptions directive.