文章目录
server {
listen 80;
server_name ~^(?<subdomain>.+).domain.com$;
root /usr/local/nginx/html/$subdomain;
index index.html;
}
server {
listen 80;
server_name ~^(?<subdomain>.+).domain.com$;
root /usr/local/nginx/html/$subdomain;
index index.html;
}