To customize the server domain that CDN nodes access during back-to-origin requests, configure the origin host. The available types for the origin host include: CDN domain name, origin domain name, and custom domain name.
Background information
-
If your origin server hosts multiple services, use the origin host to differentiate between them.
-
The origin server determines the IP address for back-to-origin requests, while the origin host determines which site on that IP address is accessed. For examples that show the difference between an origin server and an origin host, see Origin server examples.
Procedure
-
Log in to the ApsaraVideo VOD console.
-
In the left-side navigation pane, under Configuration Management, click CDN Configuration > Domain Names.
-
Find the domain name that you want to configure and click Configure in the Actions column.
-
Click Back-to-Origin.
-
Click Modify, turn on the Origin Host switch, select a domain type, and then click OK.
Parameter
Description
CDN
A CDN domain name is the accelerated domain that end users access, for example,
example.aliyundoc.com. If you select CDN, the origin host is set to the CDN domain name, such asexample.aliyundoc.com.Origin
An origin domain name is the domain of your origin server, from which CDN nodes retrieve content, for example,
learn.aliyundoc.com. If you select Origin, the origin host is set to the origin domain name, such aslearn.aliyundoc.com.Custom
If you select Custom, you can specify any domain name for the origin host. If your origin server is bound to multiple domain names, you must specify one to prevent back-to-origin request failures.
NoteIf your origin server is bound to multiple domain names, you must specify one in the Custom domain name field to prevent back-to-origin request failures.
Origin server examples
The following table provides origin host configuration examples for different origin server types.
|
Origin server type |
Feature status |
Domain and origin address |
Description |
|
site domain |
The origin host feature is disabled by default. |
CDN domain name:
Origin server address:
|
|
|
IP address |
The origin host feature is disabled by default. |
CDN domain name:
Origin server address:
|
Note
Because the origin server address is an IP address, the Origin option is unavailable. |
|
OSS domain |
The origin host feature is enabled by default. |
CDN domain name:
Origin server address:
|
|
Related operations
To configure the priority of multiple origin servers, see Configure primary and secondary origin servers.