expressjs / vhost

virtual domain hosting
MIT License
761 stars 87 forks source link

Added Multi-level subdomain wildcard #30

Closed YPetremann closed 6 years ago

YPetremann commented 6 years ago

.example.com would match www.example.com sub.sub.sub.example.com www..example.com would match www.example.com www.sub.sub.example.com but not sub.sub.example.com

dougwilson commented 6 years ago

Thanks for the pull request! Unfortunately I'm going to decline, because this goes beyond the design goals of this module. The string syntax is meant to match SSL certificates CN syntax. Anything beyond that, this module already accepts a regexp as well, which will allow you to use anything you want 😲