CDN hostnames and SSL

Default hostname

Every CDN gets a hostname of the form prefix.b-cdn.net, where the prefix is chosen at creation. It is marked Main in the hostname list, has SSL enabled from the start, and cannot be removed.

Custom hostnames

You can add any number of custom hostnames, such as cdn.example.com, so that visitors see your own domain. All of a CDN's hostnames serve the same content from the same origin. Each custom hostname needs a CNAME record at your DNS provider pointing at the default b-cdn.net hostname. The hostname shows as CNAME missing until the record is found, and becomes Active once it is verified. Wildcard hostnames such as *.example.com are not supported.

A root domain such as example.com can't have a CNAME record, but it can be used as a custom hostname if your DNS provider can point it at the b-cdn.net hostname another way, for example with CNAME flattening or an ALIAS or ANAME record.

For the steps, see How to add a custom domain to UpCloud CDN. To serve a website that is already live through the CDN, see How to serve an existing website through UpCloud CDN.

DNS proxies

If your DNS provider proxies traffic, such as Cloudflare's proxy mode, disable it for the CDN record. A proxied record does not resolve to the CNAME target, so verification fails.

SSL certificates

Once a custom hostname is verified, you can enable SSL for it in one of two ways.

OptionWhat it does
Free SSLA Let's Encrypt certificate is issued for the hostname and renewed automatically, and the hostname's SSL status shows Enabled once it is in place. If the domain has CAA records, they must allow letsencrypt.org.
Manual certificateUpload or paste your own PEM-encoded certificate with its intermediate certificates, and its private key. Renewal is your responsibility. To replace a manual certificate, remove the hostname, add it again, and upload the new certificate.

Force SSL

Each hostname has a Force SSL toggle. When on, HTTP requests to that hostname are redirected to HTTPS. It is off by default, including on the main hostname. The same redirect can be applied to specific paths only with an edge rule.

Can't find what you're looking for?

For more help you can contact our awesome 24/7 support team

Contact Support