If you want to customize the domain name of the server to which CDN initiates back-to-origin requests, you must configure the domain name type of the origin host. The available domain name types for an origin host are domain name for CDN, origin domain name, and custom domain name.

Background information

An origin host is the domain name of the origin server to which CDN initiates back-to-origin requests. If your origin server is shared by multiple services, you can use an origin host in your back-to-origin requests to distinguish different services.

An origin server determines the specific IP address to which CDN initiates back-to-origin requests. An origin host determines the requested domain associated with a specific IP address to which CDN initiates back-to-origin requests. For details about the difference between an origin server and an origin host, see Example.

Note If your origin server is bound to multiple domain names or servers, you must specify the domain name to which the back-to-origin requests are sent. Otherwise, the back-to-origin process fails.
  1. Log on to the ApsaraVideo VOD console.
  2. In the left-side navigation pane, click Configuration Management.
  3. Choose CDN Configuration > Domain Names.
  4. On the Domain Names page, select the domain name that you want to configure, and click Configure in the Actions column.
  5. In the left-side navigation pane of the domain name details page, click Back-to-Origin.
  6. In the Origin Host section, click Modify. In the Origin Host dialog box, turn on Origin Host, select a domain name type, and then click OK.
    Select a domain name type
    Parameter Description
    CDN The domain name that you want to accelerate by using CDN. Users can access this domain name, for example, example.aliyundoc.com. If you set the domain name type of the origin host to CDN, the domain name of the origin host is specified as a domain name to accelerate, for example, example.aliyundoc.com.
    Origin The domain name of the origin server. When CDN requests resources from the origin, CDN must access this domain name, for example, learn.aliyundoc.com. If you set the domain name type of the origin host to Origin, the domain name of the origin host is specified as the origin domain name, for example, learn.aliyundoc.com
    Custom If you set the domain name type of the origin host to Custom, the domain name of the origin host is specified as a custom domain name that you specify. If your origin server is bound to multiple domain names, you must specify a specific domain name. Otherwise, CDN fails to request resources from the origin server.

Example

The following table introduces how the different types of origin server to configure the different domain name types of origin host to show the differences and connections between origin server and origin host.

Origin server type Feature status Domain name Description
Site domain By default, the Origin Host switch is turned off. Domain name for CDN:

example.aliyundoc.com

The address of the origin server:

learn.aliyundoc.com

  • If you set the domain name type to CDN, the domain name of the origin host is example.aliyundoc.com.
  • If you set the domain name type to Origin, the domain name of the origin host is learn.aliyundoc.com.
  • If you set the domain name type to Custom, the domain name of the origin host is the domain name that you specify.
IP address By default, the Origin Host switch is turned off. Domain name for CDN:

example.aliyundoc.com

The address of the origin server:

10.10.10.10

  • If you set the domain name type to CDN, the domain name of the origin host is example.aliyundoc.com.
  • If you set the domain name type to Custom, the domain name of the origin host is the domain name that you specify.
Note The address of the origin server is an IP address. Therefore, the Origin option for the domain name type is unavailable.
OSS domain By default, the Origin Host switch is turned on. Domain name for CDN:

example.aliyundoc.com

The address of the origin server:

video.developer.aliyundoc.com

  • If you set the domain name type to CDN, the domain name of the origin host is example.aliyundoc.com.
  • If you set the domain name type to Origin, the domain name of the origin host is video.developer.aliyundoc.com.
  • If you set the domain name type to Custom, the domain name of the origin host is the custom domain name that you specify.
Note Default settings:

Domain name type: Origin

Address of the origin server: video.developer.aliyundoc.com