From 2374ed9216e3ea00c8faab97193fd72029eaf351 Mon Sep 17 00:00:00 2001 From: Mark Beasley Date: Thu, 11 Nov 2021 15:34:05 -0800 Subject: [PATCH] Nginx path traversal fix --- nginx/nginx.conf | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5bfc67e58..58b714bc7 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -132,7 +132,7 @@ http { alias /frontend/static/dist/; } - location /static/app { + location /static/app/ { alias /code/webrecorder/static/; } @@ -155,12 +155,12 @@ http { server { listen 6090; - location /data/warcs { - alias /data/warcs; + location /data/warcs/ { + alias /data/warcs/; } - location /data/storage { - alias /data/storage; + location /data/storage/ { + alias /data/storage/; } } @@ -226,5 +226,3 @@ http { } } } - -