From f81a98cde34b7104ed5917939dcb6ca9ade4cdde Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 26 Mar 2019 10:58:14 +0900 Subject: [PATCH] Update .htaccess like XE 1.11.3 --- .htaccess | 2 +- common/manual/server_config/rhymix-nginx-subdir.conf | 2 +- common/manual/server_config/rhymix-nginx.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 956bcd469..c0ea1b7bb 100644 --- a/.htaccess +++ b/.htaccess @@ -3,7 +3,7 @@ RewriteEngine On # block direct access to templates, XML schema files, config files, dotfiles, environment, etc. RewriteCond %{REQUEST_URI} !/modules/editor/(skins|styles)/ 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/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ - [L,F] RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F] RewriteRule ^(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F] diff --git a/common/manual/server_config/rhymix-nginx-subdir.conf b/common/manual/server_config/rhymix-nginx-subdir.conf index 97af51d23..60dd89976 100644 --- a/common/manual/server_config/rhymix-nginx-subdir.conf +++ b/common/manual/server_config/rhymix-nginx-subdir.conf @@ -5,7 +5,7 @@ location ~ ^/rhymix/modules/editor/(skins|styles)/.+\.html$ { location ~ ^/rhymix/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ { return 403; } -location ~ ^/rhymix/files/(attach|config|cache/store)/.+\.php$ { +location ~ ^/rhymix/files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ { return 403; } location ~ ^/rhymix/files/(env|member_extra_info/(new_message_flags|point))/ { diff --git a/common/manual/server_config/rhymix-nginx.conf b/common/manual/server_config/rhymix-nginx.conf index 6186a9ad9..f4938457b 100644 --- a/common/manual/server_config/rhymix-nginx.conf +++ b/common/manual/server_config/rhymix-nginx.conf @@ -5,7 +5,7 @@ location ~ ^/modules/editor/(skins|styles)/.+\.html$ { location ~ ^/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ { return 403; } -location ~ ^/files/(attach|config|cache/store)/.+\.php$ { +location ~ ^/files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ { return 403; } location ~ ^/files/(env|member_extra_info/(new_message_flags|point))/ {