All Products
Search
Document Center

ENS:Configure an HTTP listener

Last Updated:Jun 11, 2024

If you develop HTTP services for internal network communication, staging environments, or development environments, and the HTTP services do not require encryption, you can add an HTTP listener to your Edge Load Balancer (ELB) instance to forward HTTP requests.

Prerequisites

An ELB instance is created. For more information, see Create an ELB instance.

Procedure

  1. Log on to the ENS console.

  2. On the ELB Instance page, find the ELB instance that you want to manage and click Listener Configuration in the Actions column.

  3. On the Listener tab, click Add Listener.

  4. Configure the parameters. The following table describes the parameters.

    Parameter

    Description

    Listener Name

    Specify a name for the listener.

    ELB Protocol

    Select HTTP.

    Listener Port

    Specify a listening port that is used by ELB to receive requests and forward the requests to backend servers. Valid values: 1 to 65535.

    Note

    We recommend that you use port 80 for HTTP.

    Advanced Settings

    Note

    Click Modify to configure the advanced settings.

    Scheduling Algorithm

    • Weighted Round-Robin (WRR): Backend servers that have higher weights receive more requests than backend servers that have lower weights.

    • Weighted Least Connections (WLC): Requests are distributed based on the combination of the weights and active connections of backend servers. If multiple backend servers have the same weight, requests are forwarded to the backend server that has the least number of connections.

    • Round-Robin (RR): Requests are distributed to backend servers in sequence.

    Redirection

    Specify whether to redirect traffic from an HTTP listener to an HTTPS listener.

    Note

    Before you enable redirection, make sure that an HTTPS listener is created. For more information, see Configure an HTTPS listener.

    Idle Connection Timeout Period

    If no request is received within the specified timeout period, ELB closes the connection. When a request is received, ELB establishes a new connection. Valid values: 1 to 60. Unit: seconds.

    Connection Request Timeout Period

    If the backend server does not respond within the timeout period, ELB returns the HTTP 504 error code to the client.

    • Valid values: 1 to 180.

    • Unit: seconds.

    Obtain Client IP Address

    Specify whether to retrieve the IP addresses of clients. Only Layer 4 listeners support this feature. By default, this feature is enabled.

  5. Click Next, and configure health checks. For more information, see Configure health checks.

  6. After you configure health checks, click Next. Confirm the settings and click Create.

  7. On the Listener tab, find the listener that you want to enable and click Enable in the Actions column.