Parcourir la source

Merge pull request #55 from labriqueinternet/alias-traversal

Fix the issue alias_traversal
Alexandre Aubin il y a 6 ans
Parent
commit
51e3a6a100
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      conf/nginx.conf

+ 2 - 1
conf/nginx.conf

@@ -15,7 +15,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-location __PATH__ {
+#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
+location __PATH__/ {
 
 
   # Path to source
   # Path to source
   alias __FINALPATH__/ ;
   alias __FINALPATH__/ ;