If you want to use Alibaba Cloud Dynamic Route for CDN (DCDN) to accelerate content delivery for a website, you must add the domain name of the website to DCDN. After you add a domain name to DCDN, DCDN pushes the configurations of the domain name to all DCDN nodes. This process does not affect your business.

Prerequisites

  • An origin server that provides stable performance is deployed. The domain name that you want to accelerate is available.
    Note If the acceleration region is Mainland China Only or Global, you must apply for an Internet Content Provider (ICP) number for the domain name. If the domain name does not have an ICP number, you can apply for an ICP number in Alibaba Cloud ICP Filing System.
  • DCDN is activated. For more information, see Activate DCDN.

Step 1: Configure basic information

  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, click Add Domain Name to configure basic information.
    Add a domain name
    Parameter Description
    Domain Name to Accelerate
    • Domain name type: The domain name to be accelerated can be a specific domain name such as example.aliyundoc.co or a wildcard domain name such as *.aliyundoc.com.
    • Domain name format: The domain name must be in lowercase letters. Chinese characters are not supported.
      Notice

      If a domain name contains Chinese characters, such as 阿里云.网址, you must apply for an ICP number for the domain name and use the Punnycode tool to convert the Chinese domain name to an English domain name, such as xn--fiq****.xn--eq****.

    • Requirements for wildcard domain names: For more information, see Does DCDN support wildcard domain names?.
      Notice
      • The wildcard domain name that you specify and the domain names that match the wildcard domain name must belong to the same Alibaba Cloud account. Otherwise, an error message appears when you add domain names. If you need technical support from Alibaba Cloud, submit ticket.
      • If a wildcard domain name is not added to DCDN, you can add the domain names that match the wildcard domain name to DCDN by using different Alibaba Cloud accounts.
    • You cannot add duplicate domain names to DCDN.

      If the system prompts that the domain name is added to other Alibaba Cloud services such as ApsaraVideo VOD or Alibaba Cloud CDN, submit a ticket.

    • Each Alibaba Cloud account can add up to 50 domain names to DCDN.

      If the average daily peak bandwidth values of your domain names exceed 50 Mbit/s, you can submit a ticket to add more domain names to DCDN. Make sure that the increase of domain names does not cause business risks.

    • The content that is delivered from the domain name must be legal and comply with the Terms of Service for DCDN.
    Resource Group Select the default resource group or a custom resource group. For more information about how to create a resource group, see Create a resource group.
    Business Type

    DCDN: You can use this feature to accelerate the delivery of dynamic and static content.

    Acceleration Region Select an acceleration region. If you select Mainland China Only or Global, you must apply for an ICP number for the domain name. We recommend that you apply for ICP numbers in Alibaba Cloud ICP Filing System. The Ministry of Industry and Information Technology (MIIT) may not immediately update data in the database after you submit domain name information. We recommend that you configure the domain name in DCDN eight hours after you submit the domain name information.
    Note The pricing varies based on the acceleration region. Select an acceleration region based on your business requirements. For more information about the pricing of DCDN, see DCDN Pricing.

Step 2: Configure an origin server

  1. After you configure the basic information, click Add Origin Server.
  2. In the Add Origin Server dialog box, configure the parameters that are described in the following table.
    Configure an origin server
    Parameter Description
    Type

    Select the type of the origin server and enter the address of the origin server.

    • OSS Domain
      • If you use an Object Storage Service (OSS) bucket as the origin server, you can enter the public domain name of the OSS bucket, for example, ***.oss-cn-hangzhou.aliyundoc.com. Internal domain names of OSS buckets are not supported.
      • You can view the public domain name of an OSS bucket in the OSS console. You can also select an OSS bucket that belongs to the current Alibaba Cloud account from the Domain Name drop-down list.
    • IP

      You can enter public IP addresses of one or more servers. Public IP addresses of Alibaba Cloud Elastic Compute Service (ECS) instances do not need to be reviewed. Private IP addresses are not supported.

    • Site Domain
      You can enter the domain name of an origin server. To configure multiple domain names, repeat the preceding steps.
      Note
      • The origin domain name must be different from the accelerated domain name. If the origin domain name is the same as the accelerated domain name, a DNS resolution loop occurs, and requests cannot be redirected to the origin server.
      • The domain name must be in lowercase letters.
      • If a domain name contains Chinese characters, such as 阿里云.网址, you must apply for an ICP number for the domain name and use the Punnycode tool to convert the Chinese domain name to an English domain name, such as xn--fiq****.xn--eq****.
    Priority

    You can configure priorities to specify primary and secondary origin servers. The primary origin server has a higher priority than the secondary origin server. DCDN preferentially redirects requests to the primary origin server.

    For example, if you specify Origin Server A as the primary origin server and specify Origin Server B as the secondary origin server, user requests are preferentially redirected to Origin Server A. If Origin Server A is down, user requests are redirected to Origin Server B until Origin Server A works as expected again.

    Weight
    If origin servers have the same priority, DCDN redirects requests to the origin servers based on the weights of the origin servers. This way, loads are balanced among the origin servers. You can specify a weight based on your business requirements.
    • The weight of an origin server ranges from 0 to 100. An origin server that has a higher weight receives more requests.
    • The default value is 10.

    For example, you specify Origin Server A and Origin Server B as primary origin servers. If the weight of Origin Server A is 80 and the weight of Origin Server B is 20, DCDN redirects 80% of requests to Origin Server A and 20% of requests to Origin Server B.

    Port
    Select a port based on the protocol that is supported by the origin server.
    • Port 80: Requests are redirected to the origin server over port 80.
    • Port 443: Requests are redirected to the origin server over port 443. Make sure that the origin server supports HTTPS.
    Note Before you can specify a custom port, you must set Static Origin Protocol Policy and Dynamic Origin Protocol Policy to HTTP after you add a domain name. For more information, see Configure the static origin protocol policy and Configure back-to-origin requests to retrieve dynamic content.

Step 3: Complete ownership verification

  1. After you configure an origin server, click Next.
  2. Optional: The first time you add a domain name in the DCDN console, DCDN verifies the ownership of the domain name.
    Note For more information, see Verify the ownership of a domain name. If the ownership of the domain name is verified, skip this step.
  3. Wait for manual verification.
    Note If the domain name does not need to be manually verified, proceed to the next step. In the next step, you can set the parameters based on your business requirements.

    It takes one to two business days to complete the verification. If you require prioritized verification, submit ticket.

    After the domain name passes the verification, the status of the domain name changes to Enabled. In this case, the domain name is added to DCDN.

What to do next

Configure acceleration rules: After you add a domain name to DCDN, you must enable dynamic content delivery and configure acceleration rules for static and dynamic content.

Related API operations

Description API
Adds domain names.
Verifies domain name ownership