From d015679cd9ccb2b08d1a6b32984097c377979456 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Wed, 27 May 2020 08:42:49 -0400 Subject: [PATCH] No need to add trailing slashes? --- nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 4b00bec..65b9300 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,8 +4,7 @@ server { location $BASE_HREF/ { alias /etc/nginx/html/; index index.html index.htm; - try_files $uri$args $uri$args/ $uri $BASE_HREF/index.html; - rewrite ^([^.]*[^/])$ $1/ permanent; + try_files $uri$args $uri $BASE_HREF/index.html; } }