百度云主机只能访问首页,bcloud_nginx_user.conf配置
生活随笔
收集整理的這篇文章主要介紹了
百度云主机只能访问首页,bcloud_nginx_user.conf配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先百度給的配置文件是沒啥卵用的,只能訪問首頁
如果你用的是百度給的thinkphp框架
將根目錄webroot下的bcloud_nginx_user.conf文件修改為以下內容即可
location / {rewrite / /public/index.php last; }location /public/ { if (!-e $request_filename){rewrite ^/public/(.*) /public/index.php?s=$1 last;} }引用原文:http://www.tainiyishou.cn/text/Server/375/19.html
總結
以上是生活随笔為你收集整理的百度云主机只能访问首页,bcloud_nginx_user.conf配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数据仓库、OLAP和数据立方体
- 下一篇: 关于:请求中含有特殊字符,被禁止(已解决