From 2030a38addf12f3c37aa834529d26ff470aee39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=A6=E9=82=A6=E9=82=A6=E9=82=A6?= <15622356989@163.com> Date: Thu, 20 Mar 2025 20:38:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=95=E7=8B=AC=E5=A2=9E=E5=8A=A0404?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx/nginx.conf | 6 +++++- public/404.html | 44 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 public/404.html diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index 8c8b42c..32fe457 100644 --- a/deploy/nginx/nginx.conf +++ b/deploy/nginx/nginx.conf @@ -138,10 +138,14 @@ http { error_page 401 402 403 405 406 407 413 414 /error.html; error_page 500 501 502 503 504 505 /error.html; - error_page 404 /index.html; + error_page 404 /404.html; location = /error.html { root /usr/share/nginx/www; } + + location = /404.html { + root /usr/share/nginx/www; + } } } \ No newline at end of file diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..a95dda0 --- /dev/null +++ b/public/404.html @@ -0,0 +1,44 @@ + + + +
+ + + +404 Page Not Found
+