Item | Description |
Origin-pull Rule | Client requests can be forwarded by the following rules: Client IP: This rule directs origin-pull requests of clients inside or outside the specified region to the specified origin address. File extension: This rule directs origin-pull requests for the specified file extensions to the specified origin address. If you specify multiple file extensions, separate them with semicolons (;). File directory: This rule directs origin-pull requests for files in the specified directory to the specified origin address. If you specify multiple directories, separate them with semicolons (;). Full path: This rule directs origin-pull requests for a specific file with its full path, such as /a/1.jpg , to the specified origin address. If you specify multiple files with their full paths, separate the files with semicolons (;).Homepage: This rule directs origin-pull requests for files on the homepage to the specified origin address. |
Origin-pull Address | You can specify domain names or IP addresses. One origin-pull address is required for an origin-pull rule. In addition, the value of the origin domain specified for the primary domain name in the Origin server section is used. |
Port | You can specify a custom origin-pull port number. If you do not specify custom port numbers, port 80 is used for origin-pull over HTTP and port 443 is used for origin-pull over HTTPS. The origin-pull protocol depends on settings of the origin server. If you select HTTPS for Origin-pull Protocol in the Origin server section, the requests hit by an advanced origin-pull rule are forwarded over HTTPS. |
1.1.1.1
and origin-pull requests for files whose path contains /test
are forwarded to 2.2.2.2
. When a client from the Jiangsu region accesses /test
, the origin-pull request is forwarded to 2.2.2.2
.www.example.com
as the CDN acceleration domain name, with the advanced origin-pull rules configured as shown in the following figure:
http://www.example.com/vod/
. In this case, the origin-pull request hits the File directory rule and is forwarded to 1.1.1.3
.
Scenario 2: A client from the Guangdong region accesses http://www.example.com/
. In this case, the origin-pull request hits both the Homepage rule and the Client IP rule. As the Homepage rule has a higher priority, the origin-pull request is forwarded to 1.1.1.5
.
Scenario 3: A client from the Guangdong region accesses http://www.example.com/image/1.jpg
. In this case, the origin-pull request hits the File extension, Full path, and Client IP rules at the same time. As a path-based rule has a higher priority over an IP-based rule, and the Full path rule is listed lower than the File extension rule, the origin-pull request is forwarded to 1.1.1.4
.
Was this page helpful?