All Products
Search
Document Center

CDN:Configure the origin protocol policy

Last Updated:Mar 08, 2024

Alibaba Cloud CDN follows the protocol specified by the origin protocol policy to retrieve resources from an origin server. After you configure the origin protocol policy, points of presence (POPs) redirect requests based on the origin protocol policy. You can configure custom HTTP and HTTPS ports.

Feature overview

By default, the origin protocol policy feature is disabled. The origin protocol is determined by the origin port that is specified in Configure an origin server.

  • If port 443 is used, requests are redirected to the origin server over HTTPS.

  • If port 80 or another port is used, requests are redirected to the origin server over HTTP.

After you enable the origin protocol policy feature, POPs retrieve resources over the protocol that you configured.

  • HTTP: Requests are redirected to the origin server over HTTP.

  • HTTPS: Requests are redirected to the origin server over HTTPS.

  • Follow:

    • If the request is sent over HTTP, it is redirected to the origin server over HTTP.

    • If the request is sent over HTTPS, it is redirected to the origin server over HTTPS.

Note

HTTPS protects data from tampering and eavesdropping during transmission. HTTPS encryption consumes additional computing resources on the origin server. If you want to transmit sensitive data such as user identity data over HTTPS, and other data such as image files and video files over HTTP, we recommend that you set the Redirect Type parameter to Follow.

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 Origin Protocol Policy section, turn on Origin Protocol Policy.

  6. In the Static Origin Protocol Policy dialog box, set Redirect Type to Follow, HTTP, or HTTPS based on your business requirements.

    静态协议跟随回源

    Note
    • HTTP Port: If you set the Redirect Type parameter to HTTP, port 80 is used by default. You can also configure this parameter to specify a custom port.

    • HTTPS Port: If you set the Redirect Type parameter to HTTPS, port 443 is used by default. You can also configure this parameter to specify a custom port.

  7. Click OK.