nginx如何实现404状态返回 200隐藏URL
时间:2014-10-16 01:30:32
收藏:0
阅读:1100
以http://WWW.cnblogs.COM为例:
server
{
listen 80;
server_name www.cnblogs.com;
charset gb2312;
index index.php index.html;
root /data/www/wwwroot/linuxtone/www.cnblogs.com;
error_page 404 =200 /.404.jpg;
//注:上传一个404.jpg文件到www.cnblogs.com的根目录,并改名为.404.jpg
或者error_page 404 =200 /.404.html;
打开一个页面
原文:http://www.cnblogs.com/wawahaha/p/4027754.html
评论(0)