From 5a96f3331a86b32f6ed1c44fb44f43a287611a38 Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Sun, 21 Jun 2015 23:58:19 +0200 Subject: Compatible update for .htaccess. This should hopefully work in Apache 2.2 and 2.4. --- .htaccess | 10 +++++++--- util/.htaccess | 11 ++++++++--- view/.htaccess | 10 ++++++++-- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.htaccess b/.htaccess index 39fd89e04..e9c4de14d 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 -Deny from all + + Require all denied + + + Order deny,allow + Deny from all + @@ -22,6 +28,4 @@ Deny from all RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA] - - diff --git a/util/.htaccess b/util/.htaccess index b311c14c2..333a08d40 100644 --- a/util/.htaccess +++ b/util/.htaccess @@ -1,5 +1,10 @@ Options -Indexes -# Remove the following line or modify it to run the string translator utility -Deny from all - +# Remove the following lines or modify it to run the string translator utility + + Require all denied + + + Order deny,allow + Deny from all + diff --git a/view/.htaccess b/view/.htaccess index 559a5fcc0..115be49c0 100644 --- a/view/.htaccess +++ b/view/.htaccess @@ -1,3 +1,9 @@ -Deny from all - \ No newline at end of file + + Require all denied + + + Order deny,allow + Deny from all + + -- cgit v1.2.3