diff --git a/.htaccess b/.htaccess index 11b997abc..f12e66fda 100644 --- a/.htaccess +++ b/.htaccess @@ -6,7 +6,7 @@ RewriteCond %{REQUEST_URI} !/common/manual/ RewriteRule ^(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ - [L,F] RewriteRule ^files/(attach|config|cache/store)/.+\.php$ - [L,F] RewriteRule ^files/env/ - [L,F] -RewriteRule ^(\.|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F] +RewriteRule ^(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F] # static files RewriteCond %{SCRIPT_FILENAME} !-f diff --git a/common/manual/server_config/rhymix-nginx-subdir.conf b/common/manual/server_config/rhymix-nginx-subdir.conf index 3fbed27c1..8710cc63d 100644 --- a/common/manual/server_config/rhymix-nginx-subdir.conf +++ b/common/manual/server_config/rhymix-nginx-subdir.conf @@ -14,7 +14,7 @@ location ~ ^/rhymix/files/(attach|config|cache/store)/.+\.php$ { location ~ ^/rhymix/files/env/ { return 403; } -location ~ ^/rhymix/(\.|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) { +location ~ ^/rhymix/(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) { return 403; } diff --git a/common/manual/server_config/rhymix-nginx.conf b/common/manual/server_config/rhymix-nginx.conf index c780a7c21..ba7815eea 100644 --- a/common/manual/server_config/rhymix-nginx.conf +++ b/common/manual/server_config/rhymix-nginx.conf @@ -14,7 +14,7 @@ location ~ ^/files/(attach|config|cache/store)/.+\.php$ { location ~ ^/files/env/ { return 403; } -location ~ ^/(\.|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) { +location ~ ^/(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) { return 403; }