您的位置:首页 > 其它

Lumen 配置、重写、404错误等

2016-04-18 16:37 260 查看
1、权限是否有设置为777;

2、app key是否有设置;

3、apache下是否有开启重写,a2enmod;

4、nginx下server的location是否配置正确,重写规则有没添加,route的路由有没有写全,即"xxx/public/xxx";

location lumen/public/ {
root   '/var/www/html/80/lumen/public';
index  index.html index.htm index.php;
try_files $uri $uri/ /index.php?$query_string;
}


 

$app->get('lumen/public/', function () use ($app) {
return $app->welcome();
});


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: