1. Drive configuration DNS resolution.
2. pagoda -> Website -> Configuration -> subdirectory bind -> Add second-level domain sb.baidu.com, as subdirectory is public.
3.application / config.php url_domain_deploy => true, open domain deployment.
4.application / route.php add
use think\Route;
Route::domain('sb','sb/index/signin');