aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2015-06-21 23:58:19 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2015-06-22 00:45:29 +0200
commitc3fa0a3ca73cf0935de143bd4a1cbd11ea74acb3 (patch)
treee66b732a6b62b1ad0e0c5ee4e0e0775a29ee8d0f /.htaccess
parentc1e0987b880c116b392d65a2b40cda2fd53debe0 (diff)
downloadvolse-hubzilla-c3fa0a3ca73cf0935de143bd4a1cbd11ea74acb3.tar.gz
volse-hubzilla-c3fa0a3ca73cf0935de143bd4a1cbd11ea74acb3.tar.bz2
volse-hubzilla-c3fa0a3ca73cf0935de143bd4a1cbd11ea74acb3.zip
Compatible update for .htaccess.
This should hopefully work in Apache 2.2 and 2.4.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess11
1 files changed, 7 insertions, 4 deletions
diff --git a/.htaccess b/.htaccess
index 39fd89e04..7f3935117 100644
--- a/.htaccess
+++ b/.htaccess
@@ -5,7 +5,13 @@ AddType audio/ogg .oga
# don't allow any web access to logfiles, even after rotation/compression
<FilesMatch "\.(out|log|gz)$">
-Deny from all
+ <IfModule mod_authz_core.c>
+ Require all denied
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ Order deny,allow
+ Deny from all
+ </IfModule>
</FilesMatch>
<IfModule mod_rewrite.c>
@@ -14,7 +20,6 @@ Deny from all
RewriteRule "(^|/)\.git" - [F]
RewriteRule "(^|/)store" - [F]
-
# Rewrite current-style URLs of the form 'index.php?q=x'.
# Also place auth information into REMOTE_USER for sites running
# in CGI mode.
@@ -22,6 +27,4 @@ Deny from all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
-
</IfModule>
-