diff --git a/.htaccess b/.htaccess index abf3aaf009..ae109fffa2 100644 --- a/.htaccess +++ b/.htaccess @@ -9,13 +9,9 @@ DirectoryIndex index.php index.html # PROTECTED DIRECTORIES RewriteCond %{REQUEST_FILENAME} -d - RewriteRule ^/?(data|api|client)/ - [F] + RewriteRule ^/?(api|client)/ - [F] - RewriteRule ^/?data/config\.php$ - [F] - RewriteRule ^/?data/logs/ - [F] - RewriteRule ^/?data/cache/ - [F] - RewriteRule ^/?data/upload/ - [F] - RewriteRule ^/?data/\.backup/ - [F] + RewriteRule ^/?data/ - [F] RewriteRule ^/?application/ - [F] RewriteRule ^/?custom/ - [F] RewriteRule ^/?vendor/ - [F] diff --git a/install/core/config.php b/install/core/config.php index 186a02799c..9168f00669 100644 --- a/install/core/config.php +++ b/install/core/config.php @@ -67,21 +67,12 @@ service apache2 restart', try_files /reset.html =404; } - location ^~ (data|api)/ { + location ^~ (api|client)/ { if (-e $request_filename){ return 403; } } - location ^~ /data/logs/ { - deny all; - } - location ^~ /data/config.php { - deny all; - } - location ^~ /data/cache/ { - deny all; - } - location ^~ /data/upload/ { + location ^~ /data/ { deny all; } location ^~ /application/ {