Manage domains
Content can be shared via default domain and through personal domain.
Default domain
When you create a CDN resource, a default domain is automatically generated:
- Selectel — the kind
*.selcdn.net
; - Akamai is a species
*.akamaized.net
.
You can view the default domain in control panels under CDN → CDN resources → CDN resource page → tab General.
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 through the default domain is performed via HTTPS protocol, the certificate for it is issued automatically. The type of TLS(SSL) certificate depends on the provider:
- Selectel — Let's Encrypt® certificate;
- Akamai — service certificate.
Personal domain
For Akamai resource content distribution with the personal domain is performed only via HTTP, even if a TLS(SSL) certificate is added to the personal domain.
As personal domains, it is recommended to use third-level subdomains for the source domain — for example, cdn.example.com
for the domain example.com
. To forward requests to default domain CNAME record will be used.
You can also use a second-level domain other than the source domain as your personal domain — for example, example1.com
for the domain example.com
. To forward requests to default domain ALIAS record will be used. In this case, the speed of content delivery will be reduced, because the CDN-server next to the nearest one will always be selected region Selectel, not near the user. For example, a request from Khabarovsk will arrive in Novosibirsk, although there are Akamai and Selectel CDN servers in Khabarovsk.
By default, there is a limit of 10 personal domains for each CDN resource. To increase this limit for free, file a ticket.
Connect 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 other than the source of the content; - value — default domain of the type
*.selcdn.net
or*.akamaized.net
. Specify the domain without the protocol. You can view the default domain in control panels under CDN → tab CDN resources → CDN resource page → tab General.
-
В control panels go to CDN → CDN resources.
-
Open the CDN resource page → tab General.
-
In the block Personal domains 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, because each domain operation results in the reissuance of Let's Encrypt® CDN resource certificate.
-
Click Connect.