A.B更换成自己的二级域名.
编辑Bcloud_nginx_user.Conf
目前发现和网站开启伪静态配置代码会有冲突,其它正常
`set $rootdir /home/bae/app/;
if ($host = discuz.domain.com) {
set $rootdir /home/bae/app/discuz;
}
if ($host = typecho.domain.com) {
set $rootdir /home/bae/app/typecho;
}
location / {
root $rootdir;
index index.php index.html;
}
location .php {
root $rootdir;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ ".+?.php(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SERVER_PORT 80;
include fastcgi_params;
}`