Manage domains
You can distribute content through the default domain and through a personal domain.
Default domain
When creating a CDN resource, a default domain of the form *.selcdn.net is
automatically generated.
You can view the default domain in the Control Panel: from the top menu, click Products → CDN → CDN Resources → CDN Resource page → General tab.
It is not recommended to distribute content directly through the default domain, as the use of third-party domains can make it difficult to promote the site and affect the order in the search engine.
Content distribution via the default domain is HTTPS, and a Let's Encrypt® certificate is automatically issued for the domain.
Personal domain
It is recommended to use third-level subdomains for the source domain as personal domains — for example, cdn.example.com
for the example.com
domain . A CNAME record will be used to forward requests to the default domain.
You can also use a second-level domain other than the source domain as your personal domain — for example, example1.com
for example.com
. An ALIAS record will be used to forward requests to the default domain. At the same time, the speed of content delivery will decrease, because the CDN-server will always be selected near the nearest Selectel region, not near the user. For example, a request from Khabarovsk will go to Novosibirsk, although there is a CDN server in Khabarovsk.
By default, each CDN resource has a limit of 10 personal domains. To increase this limit for free, create a ticket.
Connect a personalized domain
-
If you don't already have a domain you want to use as a personal domain, register it in your DNS hosting control panel.
-
In your DNS hosting control panel, create a resource record:
- record type — CNAME for a subdomain or ALIAS for a second-level domain;
- record name — domain name. For CNAME — a subdomain of the form
cdn.example.com
, for ALIAS — a second-level domain different from the content source; - value — default domain of the form
*.selcdn.net
. Specify the domain without the protocol. You can view the default domain in the Control Panel under CDN → CDN Resources tab → CDN Resources page → General tab.
-
In the Control Panel, on the top menu, click Products and select CDN.
-
Open the CDN resource page → General tab.
-
In the Personal Domains block, click Add Domain.
-
Specify the personal domain for which you configured the record. If you need to attach multiple domains, add them in one window, as each domain operation results in the reissuance of Let's Encrypt® CDN resource certificate.
-
Click Connect.