Dynamic Route for CDN (DCDN) accelerates the delivery of dynamic content by using an optimal route selected by an intelligent routing mechanism. This topic describes how to configure back-to-origin requests to retrieve dynamic content, including the protocol used to retrieve dynamic content and whether to enable load balancing. These configurations are independent of each other. You can perform configurations based on your business requirements.

Configure the origin protocol policy to retrieve dynamic content

The protocol used to retrieve dynamic content must be the same as that used by the client. If different protocols are used, you can configure the protocol used to retrieve dynamic content. If you do not configure the protocol, the protocol of the origin server port is used to retrieve dynamic content by default.

  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 name, click Acceleration Rules.
  5. Turn on Dynamic Acceleration.
  6. Click the Dynamic Content Retrieval Settings tab.
  7. Click Modify next to Dynamic Origin Protocol Policy.
  8. In the Dynamic Origin Protocol Policy dialog box, set Redirect Type.
    Dynamic origin protocol policy
    Parameter Description
    Match Client When the client uses HTTP or HTTPS to request resources, DCDN communicates with the origin server over the same protocol that is used by the client .
    Match Origin Server When the client uses HTTP or HTTPS to request resources, DCDN communicates with the origin server over the same protocol that is used by the origin server port.
    HTTP DCDN communicates with the origin server over HTTP.
    HTTPS DCDN communicates with the origin server over HTTPS.
  9. Click OK.

Enable load balancing

Requests are redirected to origin servers based on the performance of origin servers. If you want requests to be redirected based on the weights of origin servers, you must enable load balancing. Then, requests are redirected to origin servers based on the specified weights to retrieve dynamic content.
  • Performance-based redirection

    Requests are redirected to the origin server with the best performance.

  • Weight-based redirection

    Requests are redirected to origin servers based on the specified weights. To modify the weight of an origin server, see Configure an origin server.

  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 name, click Acceleration Rules.
  5. Turn on Dynamic Acceleration.
  6. Click the Dynamic Content Retrieval Settings tab.
  7. Turn on Load Balancing to enable Load Balancing.