Deploy startbbs in the nginx service. 1. the index. phpinstall infinite redirection problem occurs after ubuntu + nginx is deployed. There is no problem in the local window. Solution: after local installation, restore the database to the server directly. 1. the index. php/install infinite redirection problem occurs after ubuntu + nginx deployment. There is no problem in the local window. Solution: after local installation, restore the database to the server and skip the installation process.
2. the layout of the homepage is messy, and all static files such as images, css, and js cannot be opened. In the future, nginx configuration errors will occur. the problem of running startbbs with other configurations remains the same. after a long time, I found that I don't know why the pages are https instead of http. you can use http to open static files.
3. in app/config. php, change config ['base _ url'] from the default null to "http://xxx.com" to solve the problem.
The nginx configuration is as follows:
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. 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 official homepage: http://startbbs.com
Http://www.bkjia.com/PHPjc/440343.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/440343.htmlTechArticle1. there is an infinite redirection problem with index. php/install after ubuntu + nginx deployment. There is no problem in the local window. Solution: after local installation, restore the database to the server directly, jump...