diff --git a/deploy/euler/nginx.conf b/deploy/euler/nginx.conf index 5945f647b2b5bf9c5347a11cbedc4567b493a28e..1808057d7b0120ee8ef109ea6d7d2bb116894c4f 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 6456fb3ff6bea22da3242c0d32c731db86949fab..af2434896e4e80b6a455c128b6f866d6d96a986c 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 af638be1a69bd45ebb61f57429ec4b5bf2fd8aa6..0ae69d5f500b931d40437595fab80bee9187a5c5 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 0000000000000000000000000000000000000000..a95dda065f3845fcd19b60c14710b11b81b82d5b --- /dev/null +++ b/packages/euler/public/404.html @@ -0,0 +1,44 @@ + + + +
+ + + +404 Page Not Found
+404 Page Not Found
+404
+