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.jpgphp

或者error_page 404 =200 /.404.html;html

打开一个页面linux

相关文章
相关标签/搜索