HTTPS is the secure version of HTTP. With HTTPS, the data sent between the browser and the server is encrypted. Server Load Balancer supports redirecting HTTP requests to HTTPS to facilitate whole-site HTTPS deployment. Redirecting HTTP requests to HTTPS is supported in all regions.

Prerequisites

You have created an HTTPS listener. For more information, see Add an HTTPS listener.

Background information

In this tutorial, redirecting HTTP 80 requests to HTTPS 443 is taken as an example.

Procedure

  1. Log on to the SLB console.
  2. In the top menu, select the region where the SLB instance is located.
  3. On the Server Load Balancer page, click the ID of the target SLB instance.
  4. Click the Listeners tab and then click Add Listener.
  5. In the Configure Server Load Balancer dialog box, select HTTP as the listener protocol and set the listening port to 80.
  6. Enable Redirection and select HTTPS:443 as the target port.


  7. Click Next.
  8. Confirm and click Submit.

    After the redirection function is enabled, all the HTTP requests will be redirected to the HTTPS listener and distributed according to the listener configurations of the HTTPS listener.