cdk-turnkey / sredirect

Send redirects for domain names over HTTPS.
Apache License 2.0
0 stars 0 forks source link

Deal with multi-label subdomains #13

Open douglasnaphas opened 2 years ago

douglasnaphas commented 2 years ago

Someone sets up sredirects for a.b.c.my-domain.com, my-domain.com, and x.my-domain.com.

I want to start by putting my-domain.com and *.my-domain.com on the cert.

But will that work for a.b.c.my-domain.com?

Test it out.

Either do the right thing, whatever that is, when there are multi-label subdomains (a.b.c in a.b.c.my-domain.com is a multi-label subdomain of my-domain.com, x in x.my-domain.com is a single-label subdomain of my-domain.com), or fail in bin/ if someone adds one.