Skip to content

Instantly share code, notes, and snippets.

@quinn
Forked from anonymous/gist:178480
Created August 31, 2009 14:15
Show Gist options
  • Save quinn/178482 to your computer and use it in GitHub Desktop.
Save quinn/178482 to your computer and use it in GitHub Desktop.
AuthType Basic
AuthName "Private"
AuthUserFile /usr/home/safire5/usr/local/etc/httpd/vhosts/deandrazninpr/docs/.htpasswd
require valid-user
# ENABLE DIRECTORY VIEWS
Options +Indexes
# 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 FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
# SET DISPLAY ORDER
IndexOrderDefault Descending Name
# SPECIFY HEADER FILE
HeaderName header.html
# SPECIFY FOOTER FILE
ReadmeName footer.html
# IGNORE THESE FILES
IndexIgnore header.html footer.html
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment