This topic describes how to modify the origin information of an accelerated domain.

Background information

Dynamic Route for CDN (DCDN) supports the following origin types: OSS Domain, IP, and Origin Domain. If you set the origin type to IP or Origin Domain, you can specify one or more IP addresses or site domain names as origins, and set the priority for each origin.
Note

The system automatically implements a layer-4 health check to test port 80 of each origin at intervals of 2.5 seconds. If an origin fails the check three consecutive times, the system marks the origin as unavailable.

DCDN supports switchover between primary and secondary origins. If multiple origins are specified, DCDN forwards requests to the origin with Priority set to Primary. If the primary origin fails the health check three consecutive times, DCDN forwards requests to the origin with Priority set to Secondary. If the primary origin passes the health check, the system marks the origin as available and restores the priority of this origin to Primary. If you set the same priority for all origins, DCDN polls each origin.

Procedure

  1. Log on to the Dynamic Route for CDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, find the target domain name and click Configure.
  4. In the Origin Information section, click Modify.
  5. In the Origin Settings dialog box, set the origin type, origin address, and port.
    Set the parameters in the Origin Settings dialog box as follows:
    • Type
      Origin type Description
      IP You can specify the public IP addresses of one or more servers. IP addresses of Alibaba Cloud Elastic Compute Service (ECS) instances are exempt from manual review. For more information, see What is ECS?
      Origin Domain You can specify the domain names of one or more origin servers.
      Note The specified origin domain cannot be the same as the accelerated domain name. Otherwise, a DNS resolution loop occurs, and the requests cannot be forwarded to the origin correctly. For example, if you set the accelerated domain name to dcdn.yourdomain.com, you can set the origin domain to img.yourdomain.com.
      OSS Domain You can manually enter the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket, for example, xxx.oss-cn-hangzhou.aliyuncs.com. To view the Internet domain name of an OSS bucket, go to the OSS console. You can also directly select an OSS bucket under the same account.
    • Port
      Port number Description
      Port 80 DCDN retrieves resources from your origin by using port 80 over HTTP or HTTPS.
      Port 443 DCDN retrieves resources from your origin by using port 443 over HTTP or HTTPS. If the IP address of your origin server is associated with multiple domains, you must Configure an origin SNI.
      Custom Port To customize a port, the following conditions must be met:

      If you set the origin protocol policy to Follow by using the corresponding API operation, make sure that the origin protocol and custom port are operational.

    origin settings
  6. Click OK.