All Products
Search
Document Center

:Configure advanced origin settings

Last Updated:Aug 30, 2024

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

  1. Log on to the DCDN console.

  2. On the Domain Names page, find the domain name that you want to manage and click Configure in the Actions column.
  3. In the left-side management pane of the domain name, click Origin Fetch.
  4. In the Advance Back-to-origin Routing section, click Customize.
  5. 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, or Request 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.
    Configure advanced origin settings
  6. 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. Configure advanced origin settings
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. Advanced origin settings 2