If SSL certificates are configured for NGINX, you must force Dynamic Route for CDN (DCDN) to redirect HTTP requests to the HTTPS versions of web pages. You can configure the forcible redirect feature to specify requests from clients to edge nodes as HTTP or HTTPS requests based on your business requirements. This topic describes how to configure the forcible redirect feature.

Prerequisites

An HTTPS certificate is configured. For more information, see Configure HTTPS certificates.

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 HTTPS Settings.
  5. In the Force Redirect section, click Modify.
  6. In the Force Redirect dialog box, select a Redirect Type.
    Redirect type Description
    Default DCDN supports both HTTP and HTTPS requests.
    HTTPS to HTTP HTTPS requests from clients to edge nodes are redirected to the HTTP versions of web pages.
    HTTP to HTTPS HTTP requests from clients to edge nodes are redirected to the HTTPS versions of web pages. If the SSL certificates are configured for NGINX, select this option. You can select this option to secure connections based on your business requirements.

    Redirect Type is set to HTTP to HTTPS in the following example.

    After a client initiates an HTTP request, the server returns a 301 response to redirect the request to the HTTPS version of the web page. The following figure shows an example.Verify the result
  7. Click OK.