diff --git a/conf/nginx-code-error.conf b/conf/nginx-code-error.conf index 4b71cff..5807407 100644 --- a/conf/nginx-code-error.conf +++ b/conf/nginx-code-error.conf @@ -4,7 +4,8 @@ location = /error/403.html { internal; } -error_page 404 /error/404.html; -location = /error/404.html { - internal; -} \ No newline at end of file +error_page 404 @error404; + +location @error404 { + rewrite ^ /error/404.html last; +}