Nginx 下使用TP5

浏览:3219 发布日期:2018/11/01 分类:技术分享
Nginx 1.14.0版本,使用TP5的配置

nginx.conf:
1、root E:/WorkSpaces/tp5/public; //注意 正斜杠
index index.html index.htm index.php; //加 index.php
2、“/scripts”改为“$document_root”

如果用的PHPStudy,其生成的 vhosts 里面的root用的反斜杠,修改即可使用
最佳答案
评论( 相关
后面还有条评论,点击查看>>