Updated on 2024-06-20 GMT+08:00

HTTP/2

What Is HTTP/2?

Hypertext Transfer Protocol 2.0 (HTTP/2) uses a binary format for data transmission. It allows for much faster transmission and multiplexing. To reduce latency and improve efficiency, you can enable HTTP/2 when you add HTTPS listeners.

Constraints

You can enable HTTP/2 only for HTTPS listeners.

Managing HTTP/2

You can enable HTTP/2 when you add an HTTPS listener. You can enable or disable HTTP/2 for an existing HTTPS listener.

To enable HTTP/2 when adding an HTTPS listener, perform the following operations:

  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. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Under Listeners, click Add Listener.
  6. In the Add Listener dialog box, set Frontend Protocol to HTTPS.
  7. Expand Advanced Settings and enable HTTP/2.
  8. Confirm the configurations and go to the next step.
    Figure 1 Enabling HTTP/2
  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. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Click Listeners, locate the listener, and click its name.
  6. On the Summary tab, click Edit on the top right.
  7. In the Edit dialog box, expand Advanced Settings and enable or disable HTTP/2.
  8. Click OK.
Figure 2 Disabling or enabling HTTP/2