1. After deploying ubuntu+nginx, an infinite redirection problem occurs in index.php/install. There is no problem in the local window. The solution is to restore the database directly to the server after local installation, skipping the installation process.
2. The layout of the home page is messed up, and all static files such as pictures, css, and js cannot be opened. Later, there was an error in the nginx configuration. The problem persisted when running startbbs using other configurations that were already running. After struggling for a long time, I found out why the page was all https instead of http. Static files can be opened using http.
3. Change config['base_url'] from the default empty to "http://xxx.com" in app/config/config.php to solve the problem. The nginx configuration is as follows: line is default and implied
ipv6 /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) {
🎜> 🎜> location ~ .+\.php($|/) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php ;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
FastCGI_PARAM PATH_INFO $ fastcgi_path_info; fastcgi_param Path_info $ PATH_INFO;
}
}
startbbs official homepage: http://startbbs.com
http://www.bkjia.com/PHPjc/440343.htmlwww.bkjia.com
true
http: //www.bkjia.com/PHPjc/440343.htmlTechArticle
1. After deploying ubuntu+nginx, an infinite redirection problem occurs in index.php/install. There is no problem in the local window. Solution, restore the database directly to the server after local installation, jump...