From 79edc377768b1c22d5a2a8a0a59d0a8bbb9ed49f 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: Fri, 21 Mar 2025 11:56:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=87=E5=AE=9A404=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/euler/nginx.conf | 6 +++- deploy/gauss/nginx.conf | 6 +++- deploy/mindspore/nginx.conf | 6 +++- packages/euler/public/404.html | 44 +++++++++++++++++++++++++++++ packages/gauss/public/404.html | 45 ++++++++++++++++++++++++++++++ packages/mindspore/public/404.html | 45 ++++++++++++++++++++++++++++++ 6 files changed, 149 insertions(+), 3 deletions(-) create mode 100644 packages/euler/public/404.html create mode 100644 packages/gauss/public/404.html create mode 100644 packages/mindspore/public/404.html diff --git a/deploy/euler/nginx.conf b/deploy/euler/nginx.conf index 5945f64..1808057 100644 --- a/deploy/euler/nginx.conf +++ b/deploy/euler/nginx.conf @@ -118,10 +118,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/deploy/gauss/nginx.conf b/deploy/gauss/nginx.conf index 6456fb3..af24348 100644 --- a/deploy/gauss/nginx.conf +++ b/deploy/gauss/nginx.conf @@ -118,10 +118,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/deploy/mindspore/nginx.conf b/deploy/mindspore/nginx.conf index af638be..0ae69d5 100644 --- a/deploy/mindspore/nginx.conf +++ b/deploy/mindspore/nginx.conf @@ -118,10 +118,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/packages/euler/public/404.html b/packages/euler/public/404.html new file mode 100644 index 0000000..a95dda0 --- /dev/null +++ b/packages/euler/public/404.html @@ -0,0 +1,44 @@ + + + + + + + + openEuler + + + + +
+ +

404 Page Not Found

+
+ + + \ No newline at end of file diff --git a/packages/gauss/public/404.html b/packages/gauss/public/404.html new file mode 100644 index 0000000..07dd21b --- /dev/null +++ b/packages/gauss/public/404.html @@ -0,0 +1,45 @@ + + + + + + + + openGauss + + + + +
+ +

404 Page Not Found

+
+ + + \ No newline at end of file diff --git a/packages/mindspore/public/404.html b/packages/mindspore/public/404.html new file mode 100644 index 0000000..6d229bf --- /dev/null +++ b/packages/mindspore/public/404.html @@ -0,0 +1,45 @@ + + + + + + + MindSpore + + + + +
+ + +

404

+
+ + -- Gitee