fastcgi_intercept_errors on;[/del]
3.更改nginx.conf或虚拟主机的域名.conf在server 区域加入:
error_page 404 /404.html;4.测试nginx.conf正确性:
the configuration file /opt/nginx/conf/nginx.conf syntax is ok5.重启nginx
configuration file /opt/nginx/conf/nginx.conf test is successful
fastcgi_intercept_errors on;好像php的404页面无法实现哦? 结果显示403
这句不增加貌似也没问题也
,原来都是缓存惹的祸| 欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) | Powered by Discuz! X3.4 |