IndexIgnore directive


Purpose

Tells httpd which files to ignore when generating an index of a directory.


Syntax

IndexIgnore pat1 pat2...

pat is a file extension or file name which should be ignored. When httpd is looking in a directory, it will try to match each of these strings to the right hand side of the entry's string, and if it matches it will ignore that entry in its directory index. If pat is a wildcard expression, httpd will match the filename against the given match expression.


Default

The only entry ignored by default is '.'.


Example

IndexIgnore README README.html .htaccess # ~

httpd will ignore files named README, README.html, and .htaccess when indexing a directory. It will also ignore emacs autosave files and emacs backup files.


Return to Resource Configuration File Overview

NCSA httpd Development Team

httpd@ncsa.uiuc.edu