Can Wildcards Be Used as Part of an Acceleration Domain Name?
Yes, but wildcard domains cannot be added on the CDN console. If you want to use a wildcard in a domain name, you must submit a service ticket.
A wildcard, *, allows multiple secondary domain names to be included by the same value. All of these secondary domain names are directed to the same IP address. If you add *.test.com to CDN as an acceleration domain name and resolve *.test.com to the CNAME domain name generated by CDN, all of the level-2 domain names under *.test.com, such as a.test.com, will enjoy CDN acceleration by default. However, level-3 domain names (such as b.a.test.com) would not.
Wildcard domains cannot be added on the CDN console. If you have such requirements, submit a service ticket.
The following are the rules for adding wildcards to domain names:
- If you add a wildcard to a domain name for a particular account, you cannot add any of the secondary domain names under that domain name to other accounts.
- Nested structures are not allowed for domain names that include wildcards. For example, if you have added a domain name like *.a.b.com, you cannot add another like *.c.a.b.com or *.b.com.
- You need to pay for the acceleration service provided to all of the secondary domain names under a wildcard domain name. If there are multiple secondary domain names, billing is based on the traffic generated by the domain name with the wildcard, not on each of the secondary domain names.