From 9ec2a9739c9403e57a0a2524c8211dec52d31ad1 Mon Sep 17 00:00:00 2001 From: 0fatal <72899968+0fatal@users.noreply.github.com> Date: Thu, 14 Mar 2024 16:33:41 +0800 Subject: [PATCH] fix(web): fix nginx conf (#1908) --- web/nginx.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/nginx.conf b/web/nginx.conf index 11c3d2581c..1ef79f23a5 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -9,6 +9,8 @@ server { application/manifest+json webmanifest; } + root /usr/share/nginx/html; + #access_log /var/log/nginx/host.access.log main; # all assets contain hash in filename, cache forever @@ -29,7 +31,6 @@ server { expires off; add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always; - root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html =404; } @@ -39,9 +40,6 @@ server { # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 #