首先百度給的配置檔案是沒啥卵用的,隻能通路首頁
如果你用的是百度給的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