nginx 配置404页面

来源:互联网 发布:互穿网络的相分离 编辑:程序博客网 时间:2024/06/06 01:25

vi nginx.conf
#在http定义区域加入: 
fastcgi_intercept_errors on;
vi vhost/**.conf
#在server 区域加入: 
error_page 404 = /404.html; 
#或者 error_page 404 = http://www.xxx.com/404.html;

重启nginx

原创粉丝点击