Browse Source

More automated htaccess.sample

Mikael Nordfeldth 3 years ago
parent
commit
4a6f509aa5
1 changed files with 7 additions and 5 deletions
  1. 7 5
      htaccess.sample

+ 7 - 5
htaccess.sample

@@ -45,9 +45,11 @@
45 45
 </IfModule>
46 46
 
47 47
 <FilesMatch "\.(ini)">
48
-  # For mod_access_compat in Apache <2.4
49
-  #Order allow,deny
50
-
51
-  # Use this instead for Apache >2.4 (mod_authz_host)
52
-  # Require all denied
48
+    <IfVersion < 2.3>
49
+        Order allow,deny
50
+        Deny from all
51
+    </IfVersion>
52
+    <IfVersion >= 2.3>
53
+        Require all denied
54
+    </IfVersion>
53 55
 </FilesMatch>