listen 80 default;
server_name ~^(.*?\.)*(?<domain>.[^\.]+?\..[^\.|\d]+?)$;
access_log /home/wwwlogs/$domain main;
参考:
http://nginx.org/en/docs/http/server_names.html#regex_names
标签:none
发布时间:May 1, 2014 // 分类:Nginx // No Comments
listen 80 default;
server_name ~^(.*?\.)*(?<domain>.[^\.]+?\..[^\.|\d]+?)$;
access_log /home/wwwlogs/$domain main;
参考:
http://nginx.org/en/docs/http/server_names.html#regex_names
标签:none