已解决在nginx中设置成功yii

我在配置文件中设置了'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。

这个是我的配置

http://www.yiiframew…oc/cookbook/15/

我已经试过了,不行

rewrite (.*) /index.php/$1;

改为

rewrite (.*) /index.php;

就可以了。

我没有设置urlSuffix,不知道这个会不会有影响

设不设urlSuffix没关系