From 16a8fcd4e85da6f06c309b8e9e7254b164c57424 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 26 Mar 2019 18:59:21 +0100 Subject: [PATCH] Fix the issue alias_traversal --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 96ad003..2078c52 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,7 +15,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -location __PATH__ { +#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +location __PATH__/ { # Path to source alias __FINALPATH__/ ;