比如我想将 app.use(express.static(path.join(__dirname, ‘/public’)));
根据访问的二级域名,定位到对应目录
app.use(express.static(path.join(__dirname, ‘/’+domain+’/public’)));
比如我想将 app.use(express.static(path.join(__dirname, ‘/public’)));
根据访问的二级域名,定位到对应目录
app.use(express.static(path.join(__dirname, ‘/’+domain+’/public’)));