thinkphp6.0 nginx 配置

location / {

    index index.php;
    #如果文件不存在则尝试TP解析
    if (!-e $request_filename) {
       rewrite  ^(.*)$  /index.php?s=/$1  last;
       break;
    }
}
原文地址:https://www.cnblogs.com/sweetsunnyflower/p/11720521.html