You can use the forcible redirect feature to redirect the original requests from a client to edge nodes as HTTP or HTTPS requests. This topic describes how to configure the forcible redirect feature.
An HTTPS certificate is configured before you configure the forcible redirect feature. For more information, see Enable HTTPS secure acceleration.
If you have enabled HTTP secure acceleration for domain names for CDN, you can forcibly redirect the original requests from users by customizing the redirect type.
Assume that you set the Redirection parameter to HTTP -> HTTPS. When 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.
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane of the ApsaraVideo VOD console, find Configuration Management.
Choose CDN Configuration > Domain Names. The Domain Names page appears.
Find the domain name that you want to configure and click Configure.
Click HTTPS. Then, click Modify in the Forced Redirection section.
Select a redirect type.
The following table describes the redirect types.
Both HTTP and HTTPS requests are supported.
HTTPS -> HTTP
The requests from a client to edge nodes are forcibly redirected as HTTP requests.
HTTP -> HTTPS
The requests from a client to edge nodes are forcibly redirected as HTTPS requests to ensure access security.