From 762b27e2acab1546c647b1c307b5f529cfcdd562 Mon Sep 17 00:00:00 2001 From: Ben Larson <10101828+ben-larson@users.noreply.github.com> Date: Tue, 8 Jun 2021 20:25:48 -0500 Subject: [PATCH] Fix trailing slash bug --- nginx.conf | 1 + src/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index c38d18b..c317936 100644 --- a/nginx.conf +++ b/nginx.conf @@ -21,5 +21,6 @@ http { server_name localhost; root /usr/share/nginx/html; index index.html; + try_files $uri $uri/index.html =404; } } diff --git a/src/index.html b/src/index.html index 49316a9..86c45ad 100644 --- a/src/index.html +++ b/src/index.html @@ -7,7 +7,7 @@ />