您好,欢迎访问一九零五行业门户网

Lumen 路由无法访问访问

我按照文档里的路由进行配置但是还是无法访问
路由
$app->get('/', function () use ($app) { $foo = new app\http\controllers\examplecontroller(); var_dump($foo); return $app->version();});$app->get('/info', function (){ phpinfo();});$app->get('api', 'api\wxcontroller@test');$app->get('ex',' examplecontroller@test');

控制器
get('/', function () use ($app) { $foo = new app\http\controllers\examplecontroller(); var_dump($foo); return $app->version();});$app->get('/info', function (){ phpinfo();});$app->get('api', 'api\wxcontroller@test');$app->get('ex',' examplecontroller@test');

控制器

nginx配置如下
server { listen 80; server_name open.wesai.com; root /opt/xxx/wservice/public;location / { index index.html index.php; if (!-e $request_filename) { rewrite ^/(.*) /index.php last; } } location ~ \.php$ { fastcgi_pass unix:/var/run/php-fpm/php5-fpm.sock; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; #fastcgi_connect_timeout 30; #fastcgi_send_timeout 30; fastcgi_read_timeout 30; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param path_info $fastcgi_path_info; fastcgi_param path_translated $document_root$fastcgi_path_info; include fastcgi_params; }}

.htaccess文件信息如下
options -multiviews rewriteengine on # redirect trailing slashes if not a folder... rewritecond %{request_filename} !-d rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l]

目录结构
求解救啊
composer autoload的没加吧?
其它类似信息

推荐信息