소스 검색

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__/ ;