nginx1.8 在配置文件中添加了配置代码,访问URL不加index.php的路由,报404
nginx1.8 在配置文件中添加了配置代码,访问URL不加index.php的路由,报404
已经在nginx中添加了官方代码,不加index.php,除了/路由不报错,其他路由依旧报404,加了的话正常访问。
官方代码如下
try_files $uri $uri/ /index.php?$query_string;
有大神告知一下吗
关于 LearnKu
部署《Laravel 8 中文文档》
server { listen 80; server_name _; autoindex on; index index.html index.htm index.php;
}
你这配置如何解析的 php 语法??
你的路由文件呢???
你的配置,缺少转发php-fpm的部分
这样子还是行哦,路由/首页不用加index.php,qw不加index.php,还是报404
@Su @IDLIFE