美文网首页
phpstudy配置ThinkPHP5.1 在 nginx 隐藏

phpstudy配置ThinkPHP5.1 在 nginx 隐藏

作者: i娟儿 | 来源:发表于2021-02-18 11:32 被阅读0次

最近换了电脑,没来得及安装docker之前,临时用phpstudy顶一下,懒人操作...

ThinkPHP5.1 在phpstudy nginx 隐藏index.php
隐藏index.php。可在对应的nginx配置文件下添加以下配置:

if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php?s=/$1 last;
                break;
  }

相关文章

网友评论

      本文标题:phpstudy配置ThinkPHP5.1 在 nginx 隐藏

      本文链接:https://www.haomeiwen.com/subject/idvgxltx.html