CentOS 安装 StartBBS 出错和解决办法

/ 0评 / 0

# www.startbbstest.com
server {
listen 80;
server_name www.startbbstest.com;

location / {
root /home/wzw/workstation/www/startbbstest.com;
index index.php index.htm index.html;
autoindex on;
}

#location = /50x.html {
# root /home/wzw/workstation/www/startbbstest.com;
#}

location ~ \.php.*$ {
root /home/wzw/workstation/www/startbbstest.com;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?$1 last;
# rewrite "^/(.*)$" /index.php last;
# break;
}
}
}

http://my.oschina.net/wzwitblog/blog/167040

网站效率:0.335秒内查询了24次数据库