diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-22 09:16:33 +1000 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-22 09:16:33 +1000 |
commit | 1c9a222697d7816227032f23e28e39348b697241 (patch) | |
tree | e66b732a6b62b1ad0e0c5ee4e0e0775a29ee8d0f | |
parent | b197c7420a1d3f0712127bed6e1216b76ae9a126 (diff) | |
parent | c3fa0a3ca73cf0935de143bd4a1cbd11ea74acb3 (diff) | |
download | volse-hubzilla-1c9a222697d7816227032f23e28e39348b697241.tar.gz volse-hubzilla-1c9a222697d7816227032f23e28e39348b697241.tar.bz2 volse-hubzilla-1c9a222697d7816227032f23e28e39348b697241.zip |
Merge pull request #355 from dawnbreak/master
Compatible update for .htaccess v2.
-rw-r--r-- | .htaccess | 11 | ||||
-rw-r--r-- | util/.htaccess | 11 | ||||
-rw-r--r-- | view/.htaccess | 10 |
3 files changed, 23 insertions, 9 deletions
@@ -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> - diff --git a/util/.htaccess b/util/.htaccess index b311c14c2..a0a0d72d9 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 +<IfModule mod_authz_core.c> + Require all denied +</IfModule> +<IfModule !mod_authz_core.c> + Order deny,allow + Deny from all +</IfModule> diff --git a/view/.htaccess b/view/.htaccess index 559a5fcc0..7aa6c4506 100644 --- a/view/.htaccess +++ b/view/.htaccess @@ -1,3 +1,9 @@ <FilesMatch "\.tpl"> -Deny from all -</FilesMatch>
\ No newline at end of file + <IfModule mod_authz_core.c> + Require all denied + </IfModule> + <IfModule !mod_authz_core.c> + Order deny,allow + Deny from all + </IfModule> +</FilesMatch> |