Merge pull request #353 from dawnbreak/master

Compatible update for .htaccess.
This commit is contained in:
redmatrix 2015-06-22 08:09:00 +10:00
commit 9f9dee28ca
3 changed files with 23 additions and 8 deletions

View File

@ -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_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</FilesMatch>
<IfModule mod_rewrite.c>
@ -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]
</IfModule>

View File

@ -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
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>

View File

@ -1,3 +1,9 @@
<FilesMatch "\.tpl">
Deny from all
</FilesMatch>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</FilesMatch>