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

windows系统 phpstudy集成环境,nginx服务, 安装laravel后除了首页可以访问,make:auth后的注册和登录页面都不能访问,网上查找原因发现只要在域名后面把index.php写上就行,然后知道是pathinfo 的问题,在nginx的vhosts.conf文件上按照文档的指导加了一行

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

 

posted @ 2020-03-17 15:23  HelpYourself!  阅读(1817)  评论(0编辑  收藏  举报