Alibaba Cloud Dynamic Route for CDN (DCDN) allows you to configure the protocol that is used by DCDN nodes to retrieve static resources from origin servers. After you configure the static origin protocol policy, DCDN redirects HTTP requests to the origin server over port 80 or HTTPS requests to the origin server over port 443 based on the protocol that you specify.

Background information

By default, the static origin protocol policy is disabled. In this case, requests are redirected to the origin server over the port that is specified in Basic Settings > Origin Information.
  • If port 443 is used, requests are redirected to the origin server over HTTPS.
  • If port 80 or a custom port is used, requests are redirected to the origin server over HTTP.
Note The static origin protocol policy supports only port 80 and port 443. After the static origin protocol policy is enabled, the port that is specified in Origin Information becomes invalid. If you want DCDN nodes to redirect requests to the origin server over a custom port, submit a ticket.

Procedure

  1. Log on to the DCDN 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 Configure in the Actions column.
  4. In the left-side navigation pane of the domain name, click Origin Fetch.
  5. On the Origin Fetch tab, find Static Origin Protocol Policy.
  6. Turn on Static Origin Protocol Policy.
  7. In the Static Origin Protocol Policy dialog box, set Redirect Type to Match Client, HTTP, or HTTPS.
    4
    Parameter Description
    Match Client When a client sends an HTTP or an HTTPS request, DCDN redirects the request to the origin server over the protocol used by the client. Make sure that both port 443 and port 80 are open on the origin server. Otherwise, DCDN may fail to redirect client requests to the origin server.
    Note The static origin protocol policy protects data from tampering and leakage during transmission. If you want to transmit sensitive data such as user identity data over HTTPS, and other data such as image files over HTTP, we recommend that you set Redirect Type to Match Client.
    HTTP DCDN redirects requests to the origin server over HTTP.
    HTTPS DCDN redirects requests to the origin server over HTTPS.
    Note
    • HTTPS encryption consumes additional computing resources on the origin server.
    • If you set Redirect Type to HTTPS, port 443 is used by default. If you want to use a custom port, submit a ticket.
  8. Click OK.