I’m having issues getting kohana to come up at all. I’m somewhat new to nginx and it’s configurations.
It’s a CentOS 5.6 box.
The configuration file: http://pastie.org/2499212
I can get phpinfo() to return correctly or other static files. It appears to be choking on the rewrite rules.
BTW, This particular config works with another server and kohana. Thanks in advance for any help.
This line in your configuration
doesn’t make much sense because you’re matching against
.phpfiles. Kohana doesn’t work that way though as it handles URLs which are either like /index.php/controller/action or /controller/action, neither end in .php and thus don’t match your rule.This configuration should work for you:
You can have another location block to match against .php files if you wish, that way you can have static PHP files in your webroot. My configuration is for when Kohana is in the webroot.
Start off with a basic basic configuration ^ and see if works. If you need more help check out #nginx on Freenode.