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

Background information

Alibaba Cloud CDN supports the following origin information: OSS Domain, IP, Site Domain, and Function Compute Domain. If you set Origin Info to IP or Site Domain, you can specify one or more IP addresses or site domain names as origins, and set priority for each origin.
Note

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

CDN supports switchover between primary and secondary origins. If multiple origins are configured, CDN redirects requests to the origin whose Priority is Primary. If the primary origin fails the health check for three consecutive times, CDN redirects requests to the origin whose Priority is Secondary. If the primary origin meets the criteria to pass 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, CDN polls each origin.

Procedure

  1. Log on to the Alibaba Cloud 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 Manage.
  4. In the Origin Information section, click Modify.
  5. In the Modify Origin Information dialog box, specify the origin information and the corresponding port.
    The following table describes relevant parameters.
    • Origin Info
      Origin Info 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.
      Site Domain You can specify one or more site domain names.
      Note You cannot specify the same site domain name as the domain name to accelerate. Otherwise, a Domain Name System (DNS) resolution loop occurs, and the requests cannot be rerouted to the origin correctly. For example, if you set Site Domain to img.yourdomain.com, set Domain Name to Accelerate cdn.yourdomain.com.
      OSS Domain You can select an Alibaba Cloud Object Storage Service (OSS) bucket from the Domain Name drop-down list in the Origin Info section. You can also manually enter the Internet domain name of an 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.
      Function Compute Domain You must set Region and Domain Name for Function Compute Domain. For more information, see Set a Function Compute domain name.
    • Port
      Port Description
      Port 80 Your origin server returns the requested resources to port 80 over HTTP or HTTPS.
      Port 443 Your origin server returns the requested resources to 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 Your origin server returns the requested resources to a custom port over HTTP only. Before you configure a custom port, choose Back-to-origin > Origin Protocol Policy to open the Static Origin Protocol Policy dialog box. In the dialog box, set Redirect Type to HTTP. For more information, see Configure the origin protocol policy.
      • If you set Static Origin Protocol Policy to Follow, you cannot configure a custom port.
      • If you set Static Origin Protocol Policy to Follow by using the corresponding API operation, make sure that the origin protocol and custom port are working properly.
    Origin Information
  6. Click OK.