摘要: 在Nginx下,配置404等http状态码的引导页面其他很简单,注意以下几点就行。1,创建自己的404页面,比如404.html或404.php。html和php都支持,但是必须确保页面的大小不能超过512字节,否则IE浏览器会用默认的错误页面。2,更改nginx.conf配置文件,在http定义区域加入fastcgi_intercept_errors on;3,在server区域加入error_page 404 = /404.html4,测试nginx配置是否正确。[root@CentOS conf]# /usr/local/webserver/nginx/sbin/nginx -tngin 阅读全文
posted @ 2012-07-05 11:23 HQER 阅读(441) 评论(0) 推荐(0) 编辑