From 9824705dfbc25fe8415f65a0bf66240e63f93747 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 30 Dec 2017 00:15:12 +0100 Subject: [PATCH] Fix the issue alias_traversal https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 74fc4df..79e996e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,5 @@ -location __PATH__ { +rewrite ^__PATH__$ ^__PATH__/ permanent; +location __PATH__/ { # Path to source alias __FINALPATH__/ ;