有一些页面打不开了.想做个404.

用以下方法

打开nginx.conf
在http段 加入 fastcgi_intercept_errors on;
打开域名.conf
在server段下面加上
error_page 404 error404.html;

测试404设置是否成功 /usr/local/nginx/sbin/nginx -t

还回成功代码

the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful

但是为什么还会出现302.

比如 这个链接百度收录了.但是文件已经不存在.
http://www.5150.cc/shehui/redian/2013-07-03/187.html

打开提示302错误 怎么不应该是404. 怎么解决

打开一个不存在的链接 http://www.5150.cc/111.html 就 提示404