NGINX 配置404错误页

1.创建自己的404.html页面

2.更改nginx.conf在http定义区域加入:

fastcgi_intercept_errors on;

3.更改nginx.conf或者在虚拟主机站点的配置文件的 在server 区域下部加入:

error_page = /.html

发表评论

邮箱地址不会被公开。 必填项已用*标注

click to changeSecurity Code