无法登陆网站,nginx漏配置

location / {
        try_files $uri $uri/ /index.php?$query_string;
}
 
这条主要是将index.php入口文件重写掉,所以平常我们直接访问域名就可以,而不用域名/index.php,这是我自己的理解,详细的地方额可以参考这个老哥的https://www.cnblogs.com/jedi1995/p/10900224.html
posted @ 2020-06-15 16:03  小林不会飞  阅读(344)  评论(0编辑  收藏  举报