aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-21 20:51:07 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-21 20:51:07 -0700
commitae6612025dcd31349056364d0c701bfda58470db (patch)
treec67db564af1d2368344205fda2889f336dd14925 /.htaccess
parent33c9d8e06b2af512d25b0c9063ce58d86b72f747 (diff)
parent0ad71b3efa7de4eb1f4313ffe4562ec83743bdc1 (diff)
downloadvolse-hubzilla-ae6612025dcd31349056364d0c701bfda58470db.tar.gz
volse-hubzilla-ae6612025dcd31349056364d0c701bfda58470db.tar.bz2
volse-hubzilla-ae6612025dcd31349056364d0c701bfda58470db.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: include/items.php util/messages.po
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>
-