Skip to content
Browse files

Add checking for mod_autoindex in .htaccess

  • Loading branch information...
1 parent c060c0e commit b70e5fbd1d6ce5e1a9f3e3b76fd9b1054eb01a7f @dimkalinux dimkalinux committed Oct 16, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 .htaccess.dist
5 .htaccess.dist
@@ -66,7 +66,8 @@ AddCharset utf-8 .html .css .js .xml .json .rss
# "-Indexes" will have Apache block users from browsing folders without a default document
# Usually you should leave this activated, because you shouldn't allow everybody to surf through
# every folder on your server (which includes rather private places like CMS system folders).
-Options -Indexes
+<IfModule mod_autoindex.c>
+ Options -Indexes

0 comments on commit b70e5fb

Please sign in to comment.
Something went wrong with that request. Please try again.