-
在nginx办事安排startbbs
添加时间:2013-5-23 点击量:1. 在ubuntu+nginx安排后呈现index.php/install无穷重定向的题目。在本地window则无题目。解决规划,在本地安装后将数据库直接还原到办事器,跳过安装流程。
2. 首页打开布局乱了,,css ,js所有静态文件 都打不开。今后是nginx设备失足,哄骗此外已经在运行的设备运行startbbs题目依旧,折腾许久许久,后来才发明不知道为什么页面上都是https而不是http.而用http是可以打开静态文件的。
3. 在app/config/config.php中将config[base_url]由默认的空改为“http://xxx.com”才解决题目。
nginx设备如下:
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
root /srv/www/forum/public_html;
index index.php index.html index.htm;
server_name xxx.com;
error_log /srv/www/forum/logs/nginx.error.log;
access_log /srv/www/forum/logs/nginx.access.log;
location / {
if (-e ¥request_filename) {
break;
}
if (!-e ¥request_filename) {
rewrite ^/(.)¥ /index.php/¥1 last;
#rewrite ^/(.)¥ /index.php last;
}
}
location ~ .+\\.php(¥|/) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\\.php)(.)¥;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME ¥document_root¥fastcgi_script_name;
fastcgi_param PATH_INFO ¥fastcgi_path_info;
fastcgi_param PATH_TRANSLATED ¥document_root¥fastcgi_path_info;
#fastcgi_param PATH_INFO ¥path_info;
}
}
startbbs官方主页:http://startbbs.com
真正的心灵世界会告诉你根本看不见的东西,这东西需要你付出思想和灵魂的劳动去获取,然后它会照亮你的生命,永远照亮你的生命。——王安忆《小说家的十三堂课》
