Dynamic Route for CDN (DCDN) allows you to configure advanced origin settings. This way, DCDN points of presence (POPs) can redirect requests to the specified origin server based on the request header, query string parameter, path, and request cookie in user requests. This topic describes how to configure advanced origin settings.
Precautions
You can configure up to 120 advanced origin rules.
Procedure
Log on to the DCDN console.
- On the Domain Names page, find the domain name that you want to manage and click Configure in the Actions column.
- In the left-side management pane of the domain name, click Origin Fetch.
- In the Advance Back-to-origin Routing section, click Customize.
- Select a value for Criteria and configure the conditional parameters. Enter an Origin Domain Name to which back-to-origin requests that meet the configured condition are redirected. Note You can select
Request Header
,Query String Parameter
,Path
, orRequest Cookie
and configure an origin server based on your business requirements. When a DCDN POP receives a request, the POP reads the specified field in the request and determines the origin server to which the request is redirected. - Click OK.
Configuration examples
Example 1: If a DCDN POP receives a request that contains test=1, the request is redirected to the origin server
example.aliyundoc.com
. Example 2: If a DCDN POP receives a request in which Pragma is not no-cache, the request is redirected to the origin server
demo.aliyundoc.com
.