From bc91be7e595215ac67b3fc6b86b1bfdfad58de1f Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Mon, 17 Dec 2018 14:11:50 +0800 Subject: [PATCH] Typo --- en_US/upgrade/0-upgrade.iredmail.0.9.8-0.9.9.md | 8 ++++---- html/upgrade.iredmail.0.9.8-0.9.9.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.8-0.9.9.md b/en_US/upgrade/0-upgrade.iredmail.0.9.8-0.9.9.md index 4ebdf5b7..4c92ca80 100644 --- a/en_US/upgrade/0-upgrade.iredmail.0.9.8-0.9.9.md +++ b/en_US/upgrade/0-upgrade.iredmail.0.9.8-0.9.9.md @@ -77,10 +77,10 @@ Add a `^` symbol before url path, this will exactly match the url begins with the path. ``` -+location ~ ^/mail/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; } -+location ~ ^/mail/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)($|.*) { deny all; } -+location ~ ^/mail/plugins/.*/config.inc.php.* { deny all; } -+location ~ ^/mail/plugins/enigma/home($|/.*) { deny all; } +location ~ ^/mail/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; } +location ~ ^/mail/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)($|.*) { deny all; } +location ~ ^/mail/plugins/.*/config.inc.php.* { deny all; } +location ~ ^/mail/plugins/enigma/home($|/.*) { deny all; } ``` Open file `/etc/nginx/templates/roundcube-subdomain.tmpl`, find `location` diff --git a/html/upgrade.iredmail.0.9.8-0.9.9.html b/html/upgrade.iredmail.0.9.8-0.9.9.html index 8dd41909..b454b5dc 100644 --- a/html/upgrade.iredmail.0.9.8-0.9.9.html +++ b/html/upgrade.iredmail.0.9.8-0.9.9.html @@ -116,10 +116,10 @@ location ~ /mail/plugins/enigma/home($|/.*) { deny all; }

Add a ^ symbol before url path, this will exactly match the url begins with the path.

-
+location ~ ^/mail/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; }
-+location ~ ^/mail/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)($|.*) { deny all; }
-+location ~ ^/mail/plugins/.*/config.inc.php.* { deny all; }
-+location ~ ^/mail/plugins/enigma/home($|/.*) { deny all; }
+
location ~ ^/mail/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; }
+location ~ ^/mail/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)($|.*) { deny all; }
+location ~ ^/mail/plugins/.*/config.inc.php.* { deny all; }
+location ~ ^/mail/plugins/enigma/home($|/.*) { deny all; }
 

Open file /etc/nginx/templates/roundcube-subdomain.tmpl, find location