upupw7.0、lnmp配置Yii2.0的坑

1、windows中安装upupw7.0

2、用upupw7.0添加虚拟主机,添加内测域名,配置hosts内测域名

3、在nginx中对应的虚拟主机的配置文件中加入(搜索location /):

 location / {
        root   d:/www/CHCPHP/frontend/web;
        index  index.php default.php index.html index.htm default.html default.htm app.php u.php;
      include        d:/www/CHCPHP/frontend/web/up-*.conf;
         try_files $uri $uri/ /index.php$is_args$args;
    }

4、删除虚拟主机目录下面upupw自动生成的配置文件:.uini 、其他静态重写配置文文件

linux的lnmp中的相关配置如下

猜你喜欢

转载自blog.51cto.com/13238147/2151836