urlmanage在nginx下的问题

‘rules’=>array (

‘XX’=>‘changshang/index’,

),

apache http://localhost/xx 可以访问

nginx http://localhost/xx 不能访问

只能访问 http://localhost/changshang/index

有没有人帮忙看看!

你应该给出更多的信息,比如你的urlmanager配置;你的nginx路由配置;还有不能访问,这个不能访问的错误是什么:是404吗?诸如此类的信息,给全一些。

恩 下次发帖的时候一定会注意的.

问题主要是nginx pathinfo的问题.

要设置 PATH_INFO $fastcgi_script_name.