PHP配置路由出错,404找不到文件

使用FastRoute配置完了之后访问,nginx报错:
"D:/WWW/justlogapi/public/index.php/justlog/user/get_base_info/8" failed (3: The system cannot find the path specified), client: 192.168.0.50, server: , request: "GET /justlog/user/get_base_info/8 HTTP/1.1", host: "192.168.0.50:81"
下面是我nginx的配置

图片说明

nginx配置
文件public/index.php是存在的,按理说,应该将justlog/user/get_base_info/8作为参数传入才对,但是服务器直接报错404说找不到。求助各路大神

希望能帮到大家:http://www.codeyyy.com/php/index.html

D:/WWW/justlogapi/public/index.php/justlog/user/get_base_info/8" failed (3: The system cannot find the path specified)这个路径错了

你改一下配置试试 location ~ .php(.*)$ {