aboutsummaryrefslogtreecommitdiff
path: root/htaccess.sample
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2015-05-10 19:41:36 +0200
committerMikael Nordfeldth <mmn@hethane.se>2015-05-10 19:41:36 +0200
commit4a6f509aa5277bb12ac3da1c281c3817bfeea788 (patch)
tree6e9c4071b189c3ce172500c1ad8472ae0705d2c1 /htaccess.sample
parentd010c5a5818a42610beb46faf93c83b4d1e25f2e (diff)
downloadgnu-social-4a6f509aa5277bb12ac3da1c281c3817bfeea788.tar
gnu-social-4a6f509aa5277bb12ac3da1c281c3817bfeea788.zip
More automated htaccess.sample
Diffstat (limited to 'htaccess.sample')
-rw-r--r--htaccess.sample12
1 files changed, 7 insertions, 5 deletions
diff --git a/htaccess.sample b/htaccess.sample
index f7513cc0c7..af6e19784d 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -45,9 +45,11 @@
</IfModule>
<FilesMatch "\.(ini)">
- # For mod_access_compat in Apache <2.4
- #Order allow,deny
-
- # Use this instead for Apache >2.4 (mod_authz_host)
- # Require all denied
+ <IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+ </IfVersion>
+ <IfVersion >= 2.3>
+ Require all denied
+ </IfVersion>
</FilesMatch>