# 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;
}
}
}
http://my.oschina.net/wzwitblog/blog/167040
原文链接:https://www.hertzdance.com/blog/centos-startbbs-error,转载请注明出处。
评论0