Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
    • Overview
    • Creating a CDN resource with an origin bucket
    • Creating a CDN resource with an origin server
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Request logs
  • Audit Trails events
  • Release notes
  • Troubleshooting

In this article:

  • Getting started
  • Create a web server
  • Create a CDN resource
  • Configure a CNAME for your domain
  • Test the CDN
  1. Getting started
  2. Creating a CDN resource with an origin server

Creating a CDN resource with an origin server in Yandex Cloud

Written by
Yandex Cloud
Improved by
Danila N.
Updated at May 7, 2026
  • Getting started
  • Create a web server
  • Create a CDN resource
  • Configure a CNAME for your domain
  • Test the CDN

Note

For details on creating an origin group and a CDN resource with other origin types, see these guides:

  • Creating a resource
  • Creating an origin group

Set up content distribution over a CDN with a Yandex Compute Cloud VM instance or Yandex BareMetal server as the origin:

  1. Create a web server.
  2. Create a CDN resource.
  3. Configure a CNAME for your domain.
  4. Test the CDN.

Getting startedGetting started

  1. Make sure you have a domain name and can access the DNS settings on your DNS hosting provider’s website. This is usually the company that registered your domain.

  2. Navigate to the management console and log in to Yandex Cloud or sign up if not signed up yet.

  3. If you do not have a folder yet, create one.

    Learn more about creating a folder
    1. In the management console, in the top panel, click or and select the cloud.

    2. To the right of the cloud name, click .

    3. Select Create folder.

      create-folder1

    4. Give your folder a name. The naming requirements are as follows:

      • Length: between 3 and 63 characters.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    5. Optionally, specify the description for your folder.

    6. Select Create a default network. This will create a network with subnets in each availability zone. Within this network, you will also have a default security group, within which all network traffic will be allowed.

    7. Click Create.

      create-folder2

Create a web serverCreate a web server

If you do not have a web server yet:

  1. Create a Compute Cloud instance or rent a BareMetal server.

  2. Install a web server on the new server or VM instance, e.g., Apache or nginx.

    When installing the web server on a VM instance, remember to associate it with a security group that allows incoming and outgoing network traffic on the appropriate ports, e.g., 80 and 443. For more information, see Creating a security group.

  3. Upload content to your web server.

  4. Make sure your web server is available from the internet.

    To check the availability of a web server created on a Compute Cloud VM instance or BareMetal server, enter the public IP address of the instance or server in the address bar, e.g.,

    http://198.51.100.27/
    

    As a result, you should see the main page of the application deployed on the server in your browser window.

Learn more about creating a website based on a Compute Cloud VM instance here.

Create a CDN resourceCreate a CDN resource

  1. Go to Cloud CDN.

  2. In the CDN resources tab, click Create resource.

  3. Under Main settings, configure the basic CDN resource settings:

    • Under Content:

      • Enable Enable access to content.

      • In the Content query field, select From one origin.

      • In the Origin type field, select Server.

      • In the Origin domain name field, specify the public IP address of your VM instance or BareMetal server with a web server.

      • In the Origin request protocol field, select HTTP.

      • In the Domain name field, specify the primary domain name you will use in your website links to CDN-hosted content, e.g., cdn.example.com.

        Alert

        You cannot change the primary domain name used for content distribution after creating a CDN resource.

    • Under Additional settings:

      • In the Redirect clients field, select Don't use.

      • In the Certificate type field, select Don't use.

      • In the Host header field, select Primary domain name.

        The Host header field value must match the name of the virtual host configured on the origin server.

  4. Click Continue.

  5. Under Caching, HTTP headers and methods, and Advanced, leave the default settings, then click Continue. You can configure these settings later, if required.

Wait until the resource is created. It may take up to 15 minutes.

Tip

We recommend prefetching large files (over 200 MB) into the CDN server cache. This is an optional step. If skipped, such content will be automatically cached on CDN servers when first accessed by the end user.

Configure a CNAME for your domainConfigure a CNAME for your domain

  1. In the Overview tab on the CDN resource page, under DNS settings, copy the generated domain name in e1b83ae3********.topology.gslb.yccdn.ru format.

  2. Navigate to your domain’s DNS settings on your DNS hosting provider’s website.

  3. Edit the relevant CNAME record so that it points to the previously copied URL in the .topology.gslb.yccdn.ru domain. For example, if the content delivery domain name you specified when creating your CDN resource is cdn.example.com, you need to create the following CNAME record or use it to replace the current record for cdn:

    cdn CNAME e1b83ae3********.topology.gslb.yccdn.ru.
    

    Note

    Do not use an ANAME resource record with domain names for content distribution; otherwise, the end user will get a response from a CDN server not linked to the user geolocation. The response will always be the same for all users.

Test the CDNTest the CDN

  1. Wait for the DNS records to update. This may take a few hours.

  2. Make sure the cdn CNAME record in the DNS server's cache points to the generated URL, e.g., e1b83ae3********.topology.gslb.yccdn.ru.

  3. Open the website in your browser to make sure it is working. Here is an example:

    http://cdn.example.com/index.html
    

See alsoSee also

  • Creating a CDN resource with an Yandex Object Storage origin bucket
  • Yandex Cloud CDN overview
  • Creating a VM from a public Linux image
  • Renting a stock-configuration BareMetal server
  • Creating a website on the LAMP or LEMP stack
  • Configuring a web server

Was the article helpful?

Previous
Creating a CDN resource with an origin bucket
Next
All guides
© 2026 Direct Cursus Technology L.L.C.