标签:
server { server_name domain.com www.domain.com *.domain.com ; set $subdomain ‘‘; if ($host ~* (\b(?!www\b).+)\.domain.com) { set $subdomain -$1; } root /home/user/www$subdomain/; }
nginx 配置多个二级域名
原文地址:http://www.cnblogs.com/fenle/p/4887146.html