It comes with an easy admin, so it is very easy to configure it for yii framework
-
Add a new host
-
Add PHP support
Of course it must be already configured - see http://www.cherokee-project.com/doc/cookbook_php.html
-
Add a rule for protected (settings see screenshot 1/2)
-
- Folder /protected/
-
- Restrict access to ip 127.0.0.1, so no one except your webserver can access the protected folder
-
Add a rule for all not existing files (settings see screenshot 3/4)
-
- Add rule "file exists" and invert it by clicking NOT
-
- Choose handler redirection and add expression ^/(.*)$ => /index.php/$1
Save your settings or edit them as you need them. That’s it, you can start working with yii on cherokee.