You can customize advanced origin settings to redirect requests to different origin servers based on the request header, query string parameter, path, and request cookie. This topic describes how to configure advanced origin settings.

Procedure

  1. Log on to the Alibaba Cloud Content Delivery Network (CDN) console.
  2. On the Domain Names page, find and click the domain name that you want to manage or click Manage in the Actions column.
  3. In the left-side domain configuration pane, click Back-to-origin.
  4. In the Advance Origin section, click Customize.Advanced origin settings
  5. Select a Criteria, and enter an Origin Domain Name.
    Note You can choose to redirect requests back to the origin server based on the request header, query string parameter, path, or request cookie. When a CDN node receives a request, it checks the specified field in the request and determines the origin server to which the request is redirected.
    Advanced origin settings
  6. Click OK.
Important
  • You can create up to 50 rules.
  • Advanced origin rules support only two logical operators: Equal To and Not Equal To. More regular expressions will soon be supported.
  • You can use advanced origin settings to redirect requests to only origin servers specified by domain names.

Examples

Example 1:

CDN node action: redirects requests that carry the parameter test=1 to the origin server img.yourdomain1.com.Advanced origin settings

Example 2:

CDN node action: redirects requests that carry the parameter test=2 to the origin server img2.yourdomain.com.Advanced origin settings