This topic describes how to modify the origin information of an accelerated domain.
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.
- Log on to the Dynamic Route for CDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, find the target domain name and click Configure.
- In the Origin Information section, click Modify.
- 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:
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 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:
- The static origin protocol policy must be set to HTTP or HTTPS. For more information, see Configure the static origin protocol policy.
- The dynamic origin protocol policy must be set to HTTP or HTTPS. For more information, see Configure the dynamic origin protocol policy.
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.
- Click OK.