Lumen 配置、重写、404错误等


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();
});

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM