nginx如何实现404状态返回 200隐藏URL

以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;

打开一个页面

posted on 2014-10-16 00:01  今天又进步了  阅读(660)  评论(0编辑  收藏  举报

导航