精明夕阳

文章
5
资源
0
加入时间
3年0月28天

nginx 404 跳转到自定义的页面

1. 自己写了一个error.html页面2. 更改nginx.conf在http定义区域加入: fastcgi_intercept_errors on;3. 更改nginx.conf中在server 区域加入: error_page 404  /404.html 4. 重启ngnix另外,有一个8000端口的错误页面也要跳转到80的erro