nginx配置监听任意域名

server_name ~^((?<subdomain>.*)\.)?(?<domain>[^.]+)\.(?<tld>[a-zA-Z]+)$;

posted @ 2025-09-10 14:52  caibutou  阅读(2)  评论(0)    收藏  举报