Nginx Fuelphp VHost配置 - 找不到文件

I am trying to setup my first fuelphp project in ubuntu12, php5 and nginx, Im following their tutorial in http://ucf.github.io/fuelphp-crash-course/#Every_Building_Needs_A_Scaffold

The problem Im having is when Im trying to access my app URL

http://localhost/public/messages

the error is "file not found"

The rewrite rule im using is

root /path/to/project;
index index.php index.htm index.html;

location / {
       try_files $uri $uri/ @handler;
       expires  30d;
}        

location @handler {
       rewrite ^ /index.php?/$request_uri;
}

Thanks in advance for the help

root /path/to/project;

I assume you are changing this to reflect the actual path to the public directory of your project? If not, you need to

After researching on this, I just found out that I did not even need to modify the .htaccess on my fuel/public/.htaccess

I fixed the problem by setting AllowOverride All in my Vhost config, enabled mod_rewrite and restarted my apache

Thanks