0

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

4

2 回答 2

0

根/路径/到/项目;

我假设您正在更改它以反映项目公共目录的实际路径?如果没有,你需要

于 2013-04-13T16:08:39.097 回答
0

在研究了这个之后,我发现我什至不需要修改我的fuel/public/.htaccess上的.htaccess

我通过在我的 Vhost 配置中设置 AllowOverride All 解决了这个问题,启用了 mod_rewrite 并重新启动了我的 apache

谢谢

于 2013-04-14T05:31:34.570 回答