在nginx.conf 里对应的server{}中配置如下代码
location / { index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$query_string;
}
然后 重启 nginx即可
在nginx.conf 里对应的server{}中配置如下代码
location / { index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$query_string;
}
然后 重启 nginx即可
未经允许不得转载:外贸技术家园 » Nginx配置 Laravel 正常访问