浏览代码

Fix the issue alias_traversal

https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
Maniack Crudelis 7 年之前
父节点
当前提交
9824705dfb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      conf/nginx.conf

+ 2 - 1
conf/nginx.conf

@@ -1,4 +1,5 @@
-location __PATH__ {
+rewrite ^__PATH__$ ^__PATH__/ permanent;
+location __PATH__/ {
 
   # Path to source
   alias __FINALPATH__/ ;