If multiple sites are hosted on your origin server, and the site for which back-to-origin routing is enabled is different from the one to which the accelerated domain name points, you must configure an origin host. An origin host specifies the site to which Alibaba Cloud CDN redirects requests.
Background information
Differences between an origin server and an origin host:
- An origin server is where your workloads run, and defines a specific IP address to which requests are redirected.
- An origin host is the value of the HOST header in back-to-origin requests, and defines a specific site that is hosted on a specific IP address. Back-to-origin requests are redirected to the site.
Notice
- For a specific domain name, the origin host is the accelerated domain name.
- For a wildcard domain name, the origin host is the domain name that matches the wildcard domain and is actually visited by users. For example, if the wildcard domain name is *.aliyundoc.com and the domain name that is visited by users is example.aliyundoc.com, the origin host is example.aliyundoc.com.
Procedure
Configuration examples
Example 1: The address of the origin server is a domain name.
Domain name | Description |
---|---|
Accelerated domain name:
Address of the origin server:
|
|
Example 2: The address of the origin server is an IP address.
Domain name | Description |
---|---|
Accelerated domain name:
Address of the origin server:
|
|
Example 3: The address of the origin server is an OSS endpoint.
Domain name | Description |
---|---|
Accelerated domain name:
Address of the origin server:
|
|