Deployment of startbbs_PHP in nginx

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.