您好,欢迎来到菜鸟吧源码网-本站资源仅供学习与参考,禁止用于商业或违法行为!
  • 首 页
  • 下载APP
  • 菜鸟吧APP1.0于2024.9.15 正式上线,请首页右上角进入下载,本站资源均来源于互联网及会员投稿发布,所有资源仅供学习参考研究使用,请勿商用或其它非法用途,商用请购买正版,否则产生一切后果由用户自行承担!谢谢!

     

    当前位置:主页 > 站长学堂 > 云优教程 >
    百度云安装云优
    时间:2024-11-26 21:22 作者:菜鸟哥 浏览:收藏 挑错 打印

    百度云安装云优系统类似于阿里云主机,请参考《阿里云虚拟主机安装云优系统》

    注意事项:

    因为百度独立主机只支持Nginx + PHP 5.2/5.3/5.4/5.6/7.0,所以需要以下2个步骤

    1. 需要关闭空间自带的缓存加速功能

    2. 然后新建文件bcloud_nginx_user.conf,放置FTP站点目录下

    bcloud_nginx_user.conf 文件内容如下 如果不是最新版,请自行转换伪静态规则即可。

    查看源码

    location / {

        if (!-d $request_filename){

            set $rule_0 1$rule_0;

        }

        if (!-f $request_filename){

            set $rule_0 2$rule_0;

        }

        if ($rule_0 = "21"){

            rewrite ^/(.*).(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.htm;

        }

        rewrite ^/admin/(.*).html$ /index.php/admin/$1 last;

        rewrite ^/admin/(.*)$ /index.php/admin/$1 last;

        rewrite ^/m/$ /index.php/wap/index/index last;

        rewrite ^/m/(.*)_(.*)/(.*)_(.*).html$ /index.php/wap/show/index?etitle=$3&area=$1&cw=$4 last;

        rewrite ^/m/(.*)_(.*)/(.*).html$ /index.php/wap/show/index?etitle=$3&area=$1 last;

        rewrite ^/m/search/$ /index.php/wap/search/index last;

        rewrite ^/m/myform/$ /index.php/wap/myform/index last;

        rewrite ^/m/captcha/(.*)$ /index.php/wap/myform/captcha?id=$1 last;

        rewrite ^/m/(.*)_search/$ /index.php/wap/search/index?area=$1 last;

        rewrite ^/m/(.*)/(.*)_(.*).html$ /index.php/wap/show/index?etitle=$2&cw=$3 last;

        rewrite ^/m/(.*)_tag/([sS]*)$ /index.php/wap/tag/index?title=$2&area=$1 last;

        rewrite ^/m/tag/([sS]*)$ /index.php/wap/tag/index?title=$1 last;

        rewrite ^/m/(.*)/(.*).html$ /index.php/wap/show/index?etitle=$2 last;

        rewrite ^/m/(.*)_(.*)/$ /index.php/wap/category/index?ctitle=$2&area=$1 last;

        rewrite ^/m/(.*)_(.*)/page/(.*)$ /index.php/wap/category/index?ctitle=$2&area=$1&page=$3 last;

        rewrite ^/m/(.*)/$ /index.php/wap/category/index?ctitle=$1 last;

        rewrite ^/m/(.*)/page/(.*)$ /index.php/wap/category/index?ctitle=$1&page=$2 last;

        rewrite ^/m/(.*).html$ /index.php/wap/index/index?area=$1 last;

        rewrite ^/statics/ueditor/dialogs/(.*)/(.*).html$ /statics/ueditor/dialogs/$1/$2.html last;

        rewrite ^/index(.*)/$ /index.php/index/index/index/$1 last;

        rewrite ^/(.*)_(.*)/(.*)_(.*).html$ /index.php/index/show/index?etitle=$3&area=$1&cw=$4 last;

        rewrite ^/(.*)_(.*)/(.*).html$ /index.php/index/show/index?etitle=$3&area=$1 last;

        rewrite ^/search/$ /index.php/index/search/index last;

        rewrite ^/myform/$ /index.php/index/myform/index last;

        rewrite ^/captcha/(.*)$ /index.php/index/myform/captcha?id=$1 last;

        rewrite ^/search/page/(.*)$ /index.php/index/search/index?page=$1 last;

        rewrite ^/(.*)_search/$ /index.php/index/search/index?area=$1 last;

        rewrite ^/(.*)/(.*)_(.*).html$ /index.php/index/show/index?etitle=$2&cw=$3 last;

        rewrite ^/(.*)/(.*).html$ /index.php/index/show/index?etitle=$2 last;

        rewrite ^/(.*)_tag/([sS]*)$ /index.php/index/tag/index?title=$2&area=$1 last;

        rewrite ^/tag/([sS]*)$ /index.php/index/tag/index?title=$1 last;

        rewrite ^/(.*)_(.*)/$ /index.php/index/category/index?ctitle=$2&area=$1 last;

        rewrite ^/(.*)_(.*)/page/(.*)$ /index.php/index/category/index?ctitle=$2&area=$1&page=$3 last;

        rewrite ^/(.*)/$ /index.php/index/category/index?ctitle=$1 last;

        rewrite ^/(.*)/page/(.*)$ /index.php/index/category/index?ctitle=$1&page=$2 last;

        rewrite ^/(.*).html$ /index.php/index/index/index?area=$1 last;

    }


    郑重声明:
    本站所有内容均由互联网收集整理、网友上传,并且以计算机技术研究交流为目的,仅供大家参考、学习,不存在任何商业目的与商业用途。 若您需要商业运营或用于其他商业活动,请您购买正版授权并合法使用。
    我们不承担任何技术及版权问题,且不对任何资源负法律责任。
    如无法下载,联系站长索要。
    如有侵犯您的版权,请给我们来信:cainiaovip8@qq.com,我们尽快处理。

    云优城市分站管理系统能不能独立发布文章?云优城市分站管理系统能不能独立发布文
    云优CMS伪静态规则大全云优CMS伪静态规则大全
    百度云安装云优百度云安装云优