If you need 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: domain name to accelerate, 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 bound to 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 DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, find the domain name that you want to manage, and click Configure in the Actions column.
  4. In the left-side navigation pane on the details page of the specified domain, click Origin Fetch.
  5. On the Origin Fetch tab, find Origin Host.
  6. Turn on Origin Host and specify Domain Type.
    Origin host
    Parameter Description
    Domain Name to Accelerate This option specifies the domain name that you want to accelerate by using DCDN. Users can access this domain name, for example, dcdntest.com. If you set the domain type of the origin host to Domain Name to Accelerate, the domain name of the origin host is specified as a domain name to accelerate, for example, dcdntest.com.
    Origin Domain Name This option specifies the domain name of the origin server. When DCDN requests resources from the origin, DCDN needs to access this domain name, for example, origin.com. If you set the domain type of the origin host to Origin Domain Name, the domain name of the origin host is specified as the origin domain name, for example, origin.com.
    Custom Domain If you set the domain type of the origin host to Custom Domain, the domain name of the origin host is specified as a custom domain name that you specify. If your origin is bound to multiple domain names, you must specify a specific domain name. Otherwise, DCDN fails to request resources from the origin.
    Example Origin type Feature status Domain Description
    Example 1 Site domain By default, the Origin Host feature is disabled. The domain to accelerate:

    dcdntest.com

    The address of the origin server:

    origin.com

    • If you set the domain type to Domain Name to Accelerate, the domain name of the origin host is dcdntest.com.
    • If you set the domain type to Origin Domain Name, the domain name of the origin host is origin.com.
    • If you set the domain type to Custom Domain, the domain name of the origin host is the custom domain name that you specify.
    Example 2 IP address By default, the Origin Host feature is disabled. The domain to accelerate:

    dcdntest.com

    The address of the origin server:

    1.1.1.1

    • If you set the domain type to Domain Name to Accelerate, the domain name of the origin host is dcdntest.com.
    • If you set the domain type to Custom Domain, the domain name of the origin host is the custom domain name that you specify.
    Note The address of the origin server is an IP address. Therefore, the Origin Domain Name option for the domain type is unavailable.
    Example 3 OSS domain By default, the Origin Host feature is enabled. The domain to accelerate:

    dcdntest.com

    The address of the origin server:

    test.oss-cn-hangzhou.aliyuncs.com

    • If you set the domain type to Domain Name to Accelerate, the domain name of the origin host is dcdntest.com.
    • If you set the domain type to Origin Domain Name, the domain name of the origin host is test.oss-cn-hangzhou.aliyuncs.com.
    • If you set the domain type to Custom Domain, the domain name of the origin host is the custom domain name that you specify.
    Note Default settings:

    Domain type: Origin Domain Name

    Address of the origin server: test.oss-cn-hangzhou.aliyuncs.com

  7. Click OK.