1.config文件里的url_domain_deploy用法
1、application\config.php 的 url_domain_deploy 打开(为true)。
2、application\route.php 注册域名部署规则
use think\Route;
//其中m是子域名,而mobile是模块名
//这段表示任何以m为子域名的访问,都会被解析到mobile模块
Route::domain(‘m’,‘mobile’);
2.phpstudy虚拟域名安装fa(顺序重要)
1、配置网站域名:fastadmin.localtest.me
网站目录:C:/www/FastAdmin/public
2、使用浏览器打开 http://fastadmin.localtest.me,点击安装