WishMeLz

生活其实很有趣

Nginx根据二级域名匹配对应的文件夹

server {
    listen       80;
    server_name  ~^(?<erji>[a-z0-9]+).itsse.cn$;
    charset utf-8;
    location / {
         root /app/$erji; 
  }
}