• Elastic Load Balancing

elb
  1. Help Center
  2. Elastic Load Balancing
  3. User Guide
  4. Management
  5. HTTP Redirection to HTTPS

HTTP Redirection to HTTPS

Scenarios

HTTPS is the secure version of HTTP. With HTTPS, the data sent between the browser and the server is encrypted.

To ensure connection security, you can add an HTTP listener and an HTTPS listener to an enhanced load balancer to redirect HTTP requests to HTTPS without interrupting your service.

Currently, only enhanced load balancers support this function.

Add a Redirect

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Under Network, click Elastic Load Balancing.
  4. Locate the target load balancer and click its name.
  5. Click Listeners, locate the target HTTP listener, and click its name.
  6. Click Redirects and then Create on the right.
    Table 1 Parameters for configuring redirection

    Parameter

    Description

    Example Value

    Name

    Specifies the redirect name.

    redirect-g8h9

    Redirected To

    Specifies the HTTPS listener to which requests are redirected.

    N/A

    Description

    Provides supplementary information about the redirect.

    N/A

  7. Click OK.
    NOTE:

    Once an HTTP listener is redirected, its configuration and forwarding policies become invalid.

Modify a Redirect

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Under Network, click Elastic Load Balancing.
  4. Locate the target load balancer and click its name.
  5. Click Listeners, locate the target HTTP listener, and click its name.
  6. Click Redirects, locate the target redirect, and click Modify in the Operation column.
  7. In the Modify Redirect dialog box, modify the redirect name or description, or select another listener to be redirected to, and click OK.

Delete a Redirect

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Under Network, click Elastic Load Balancing.
  4. Locate the target load balancer and click its name.
  5. Click Listeners and then click the name of the target listener.
  6. Click Redirects, locate the target redirect, and click Delete in the Operation column.
  7. In the Delete Redirect dialog box, click Yes.