404页面

This commit is contained in:
huanqing.shao
2019-10-09 12:13:32 +08:00
parent 56b0cb393f
commit 9c4b1835fd
5 changed files with 38 additions and 17 deletions

View File

@ -6,8 +6,12 @@ server {
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
error_page 404 500 502 503 504 /404.html;
location /50x.html {
root /usr/share/nginx/html;
}
location /404.html {
root /usr/share/nginx/html;
}
}