I'm running the latest stable Nginx and trying to get rewrites working for Yii. I've read the related cookbook article but no CSS is being used, and only the home page shows up. Any other page access results in a 404 error.
Here's what I've done...
In protected/config/main.php I have the following related to UrlManager:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
In the nginx.conf file, I have these rewrite rules in place, per the cookbook:
# The location is /
# Rewrite all other URLs
if (!-e $request_filename) {
#rewrite ^/(.+)$ /index.php?url=$1 last; // This is the CakePHP rule that works
rewrite (.*) /index.php/$1;
break;
}
I've also added the fcgi_param PATH_INFO $fastcgi_script_name directive to the fastcgi config in nginx.conf.
It's probably fairly simple but no matter what I try, I get 404 errors after the home page and there's no CSS.
Thanks for any help!

Help













