安裝以前須要作如下配置(app/config/config.php): php
$config['base_url'] = 'http://www.startbbstest.com/'; $config['index_page'] = 'index.php';
if (!-e $request_filename) { rewrite ^(.*)$ /index.php?$1 last; # rewrite "^/(.*)$" /index.php last; # break; }以下:
# 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; } } }