All Products
Search
Document Center

CDN:Configure advanced origin settings

更新時間:Oct 14, 2024

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. This topic describes how to configure advanced origin settings.

Usage notes

  • Configuration limit: You can add a maximum of 120 rules.

  • Feature conflict: The Conditional Origin feature conflicts with the Advance Origin feature. You can configure only one of the two features.

  • Matching order: The system attempts to match rules in the configuration list in descending order. If a rule is matched, the system stops the matching.

Differences between the conditional origin, basic origin, and advanced origin

  • The address of a basic origin is the default address of the origin server used for origin fetch. If a user request does not match the rule of a conditional origin or advanced origin, the address of the basic origin is used.

  • If a user request matches the rule of a conditional origin or advanced origin, the address of the origin server that is specified in the conditional origin or advanced origin settings is used.

  • The conditional origin feature is an enhanced version of the advanced origin feature. The conditional origin feature can use rules configured in the rules engine. This allows you to configure more flexible origin policies.

Procedure

  1. Log on to the Alibaba Cloud CDN console.

  2. In the left-side navigation pane, click Domain Names.

  3. On the Domain Names page, find the domain name that you want to manage and click Manage in the Actions column.

  4. In the left-side navigation tree of the domain name, click Origin Fetch.

  5. In the Advance Origin section, click Customize.

  6. In the Advance Origin dialog box, 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 point of presence (POP) receives a request, it checks the specified field in the request and determines the origin server to which the request is redirected.

    高级回源

  7. Click OK.

Examples

POP action: redirects requests that carry the parameter test=1 to the origin server img2.yourdomain.com.高级回源