United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
The mod_autoindex module is used for automatic directory listings.
All of these options can be added in a virtual host section, a directory section, or in the main configuration section. These can be added to the bottom of /etc/httpd/conf/httpd.conf file.
To add comments for all files of the same type, add:
AddDescription "This is a text file" .txt
This would add the description "This is a text file" to any file that ended in the .txt extension.
To add a description for a particular file:
AddDescription "Our financial report" docs/finances.txt
This would add the description "Our financial report" to the docs/finances.txt file.
To have the index ignore some files, add:
IndexIgnore docs/hidden.txt
Now when the directory listing of docs is viewed, it will not show the file hidden.txt.
For other available options see http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html.