From 0444bc9d2ee5373fcd5fbe6aa57b4c364c509d6d Mon Sep 17 00:00:00 2001 From: hyh123a Date: Tue, 7 Sep 2021 15:18:31 +0800 Subject: [PATCH] fixed the 404 error --- web/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/web/nginx.conf b/web/nginx.conf index 69c29fee..2f901303 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -33,6 +33,7 @@ http { location / { root /var/www/html/web; index index.html index.htm; + try_files $uri /index.html; } #error_page 404 /404.html;