When Dynamic Route for CDN (DCDN) cannot return the requested resources from the cache node nearest to the requester, DCDN retrieves these resources from the origin server by using the configured origin protocol policy. Then, DCDN returns the retrieved resources to the requester and caches them to the nearest node. This topic describes how to configure the origin protocol policy.

Background information

If you set the origin protocol policy to Follow, DCDN communicates with the origin server over the protocol that is used by the client. For example, if the client sends an HTTPS request to access resources that are not cached on a DCDN node, the node uses the HTTPS protocol to request resources from the origin server. Similarly, if the client uses the HTTP protocol to request resources, the DCDN node also uses the HTTP protocol to request resources from the origin server.
Note The origin server must support port 80 and port 443. Otherwise, the back-to-origin process may fail.

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 on the details page of the specified domain, click Origin Fetch.
  5. On the Origin Fetch tab, click 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.

    To enable DCDN to communicate with the origin server by using the same protocol of the client request, you must set, you must set Redirect Type to Match Client.

    Note After the static origin protocol policy is enabled, the port that you specified to forward requests to the origin server in the DCDN console becomes invalid.
    Parameter Description
    Match Client DCDN communicates with the origin server by using HTTP or HTTPS based on the protocol of the client request.
    HTTP If the client uses the HTTP or HTTPS protocol to request resources from the origin, DCDN uses only HTTP to access the origin server.
    HTTPS If the client uses the HTTP or HTTPS protocol to request resources from the origin, DCDN uses only HTTPS to access the origin server.
  8. Click OK.