Created
June 1, 2017 07:11
-
-
Save bbog/01bfca3c487c0d10ca67211e75a99d51 to your computer and use it in GitHub Desktop.
Custom mod autoindex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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