Skip to content

Instantly share code, notes, and snippets.

@bbog
Created June 1, 2017 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbog/01bfca3c487c0d10ca67211e75a99d51 to your computer and use it in GitHub Desktop.
Save bbog/01bfca3c487c0d10ca67211e75a99d51 to your computer and use it in GitHub Desktop.
Custom mod autoindex
# STRONG HTACCESS PROTECTION
<Files ~ "^.*.([Hh][Tt][Aa])">
order allow,deny
deny from all
</Files>
# DIRECTORY CUSTOMIZATION
<IfModule mod_autoindex.c>
# SET INDEX OPTIONS
IndexOptions IgnoreCase FoldersFirst SuppressHTMLPreamble
# SPECIFY HEADER FILE
HeaderName /.header.html
# SPECIFY FOOTER FILE
ReadmeName /.footer.html
# IGNORE THESE FILES
IndexIgnore header.html footer.html favicon.ico .htaccess .ftpquota .DS_Store icons .log ,v ,t .?? ~ #
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment