Rewrite Url In Nginx

Hi everyone,

I’m using this topic to configure my nginx cloud VPS:

http://www.yiiframework.com/doc/guide/1.1/en/quickstart.apache-nginx-config

But I got one problem:

I’ve created 2 actions like this:


/Posts/caregory/view/url/some-thing

/Posts/default/view/category/some-thing/url/another-some-thing

Now I want to rewrite like this:


/some-thing => '<url:([a-zA-Z0-9\-]+)>'=>array('/Events/categories/view')

/some-thing/another-some-thing=> '<category:([a-zA-Z0-9\-]+)>/<url:([a-zA-Z0-9\-]+)>'=>array('/Events/default/view', 'urlSuffix'=>'.html'),

But the link with .html urlSuffix is not found! Any ideas?