Sfoglia il codice sorgente

Fix the issue alias_traversal

https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
Maniack Crudelis 7 anni fa
parent
commit
9824705dfb
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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__/ ;