我在配置文件中设置了'urlManager'=>array('showScriptName'=>false,'urlFormat'=>'path','urlSuffix'=>'.html',),同时也按照http://www.yiiframework.com/doc/cookbook/15/配置了nginx不能用,改为
location / {
if(!-e $request_filename){
rewrite ^/(.*)$ /index.php/$1 last;
}
}也不行,谁成功配置过,大家贴一下吧。
我用的是redhat enterprise 5。