# Using Apache's mod_autoindex¹, a directory index can be easily customized to
# fit a website's layout by setting a custom header and footer. Even
# server-side code can be executed (see directive ``HeaderName``).
#
# ¹) see http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
Options +Indexes
IndexOptions +XHTML +SuppressHTMLPreamble
IndexOptions +SuppressColumnSorting +SuppressLastModified
IndexOptions -FancyIndexing +FoldersFirst +IgnoreCase
IndexIgnore header.html footer.html
HeaderName /path/header.html
ReadmeName /path/footer.html