lumen路由配置nginx

nginx配置文件中添加:

set $root_path '/data/www/m.domain.com/public';

root $root_path;

location / {

try_files $uri $uri/ /index.php?$query_string;

}

框架目录下的routes/web.php中添加测试代码

$app->get('test/show', 'TestController@show');

http://m.domain.com/test/show