Compatible update for .htaccess.
This should hopefully work in Apache 2.2 and 2.4.
This commit is contained in:
parent
c1e0987b88
commit
5a96f3331a
@ -5,7 +5,13 @@ AddType audio/ogg .oga
|
|||||||
|
|
||||||
# don't allow any web access to logfiles, even after rotation/compression
|
# don't allow any web access to logfiles, even after rotation/compression
|
||||||
<FilesMatch "\.(out|log|gz)$">
|
<FilesMatch "\.(out|log|gz)$">
|
||||||
|
<IfModule !mod_access_compat.c>
|
||||||
|
Require all denied
|
||||||
|
</IfModule>
|
||||||
|
<IfModule mod_access_compat.c>
|
||||||
|
Order deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
|
</IfModule>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
@ -22,6 +28,4 @@ Deny from all
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
|
RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
Options -Indexes
|
Options -Indexes
|
||||||
|
|
||||||
# Remove the following line or modify it to run the string translator utility
|
# 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
|
Deny from all
|
||||||
|
</IfModule>
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
<FilesMatch "\.tpl">
|
<FilesMatch "\.tpl">
|
||||||
|
<IfModule !mod_access_compat.c>
|
||||||
|
Require all denied
|
||||||
|
</IfModule>
|
||||||
|
<IfModule mod_access_compat.c>
|
||||||
|
Order deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
|
</IfModule>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
Reference in New Issue
Block a user