diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index 8c8b42c83638fc9b32b75469b94117d40363c1e4..32fe45766c415e60dd9d75eb0d6aff5e79e4f0e3 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 0000000000000000000000000000000000000000..a95dda065f3845fcd19b60c14710b11b81b82d5b --- /dev/null +++ b/public/404.html @@ -0,0 +1,44 @@ + + + + + + + + openEuler + + + + +
+ +

404 Page Not Found

+
+ + + \ No newline at end of file