nginx服务器URL无法自动添加index.php

请教个nginx问题,添加try_files $uri $uri/index.php /index.php?$query_string;,类似www.mydomain.com/admin这样的URL可以解析,但是单纯访问www.mydomain.com却提示403错误,www.mydomain.com/index.php这样手动添加index.php后可以正常解析,有遇到类似问题的吗?

原文地址:https://www.cnblogs.com/mafeng/p/8033634.html