If you want to customize the origin server domain from which Dynamic Route for CDN (DCDN) requests resources, you must configure the domain type of the origin host. The origin host supports the following domain types: accelerated domain name, origin domain name, and custom domain name.

Background information

The origin host is the origin server domain from which DCDN requests resources.

Note If your origin is associated with multiple domains or sites, you must specify the domain for DCDN to forward access requests. Otherwise, DCDN fails to request resources from the origin.
Differences between the origin and the origin host:
  • The origin determines a specific IP address to which DCDN forwards access requests.
  • The origin host determines a specific site hosted on the specific IP address, to which DCDN forwards access requests.

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 left-side navigation pane of the specified domain, click Origin Fetch.
  5. In the Origin Host section, click Modify.
  6. Turn on Origin Host, and select a domain type.
    Parameter Description Example
    DCDN Domain Name This option specifies the domain name that you want to accelerate by using DCDN. If the origin type is set to IP, the default domain type of the origin host is DCDN Domain Name. If the origin is set to www.a.com and the origin host is set to www.b.com, DCDN requests resources from the site www.b.com, which is hosted on the IP address to which www.a.com is mapped.
    Origin Domain Name This option specifies the domain name of the origin server where the requested resources are stored. If your origin type is set to OSS Domain, the default domain type of the origin host is Origin Domain Name. If the origin is set to 1.1.1.1 and the origin host is www.b.com, DCDN requests resources from the site www.b.com that is hosted on the server at 1.1.1.1.
    Custom Domain If your origin is associated with multiple domain names, you must specify a specific domain name. Otherwise, DCDN fails to request resources from the origin. dcdn1.aliyun.com
    origin host
  7. Click OK.