您可以使用 Google HTTPS 负载平衡器强制 http/1.1 吗?
Can you force http/1.1 with Google HTTPS load balancers?
我有一个 Google HTTPS 负载平衡器,它根据客户端自动协商 http/1.1 或 http/2。我在使用 http/2 时遇到了一些奇怪的问题,我想暂时禁用 http/2 并强制所有客户端使用 http/1.1。这可能吗?
很遗憾,这是不可能的。查看文档 External HTTP(S) Load Balancing overview in section Client communications with the load balancer:
- Clients can communicate with the load balancer by using the HTTP 1.1 or HTTP/2 protocol.
- When HTTPS is used, modern clients default to HTTP/2. This is controlled on the client, not on the HTTPS load balancer.
- You cannot disable HTTP/2 by making a configuration change on the load balancer. However, you can configure some clients to use HTTP
1.1 instead of HTTP/2. For example, with
curl
, use the --http1.1
parameter.
- HTTPS load balancers do not support client certificate-based authentication, also known as mutual TLS authentication.
我有一个 Google HTTPS 负载平衡器,它根据客户端自动协商 http/1.1 或 http/2。我在使用 http/2 时遇到了一些奇怪的问题,我想暂时禁用 http/2 并强制所有客户端使用 http/1.1。这可能吗?
很遗憾,这是不可能的。查看文档 External HTTP(S) Load Balancing overview in section Client communications with the load balancer:
- Clients can communicate with the load balancer by using the HTTP 1.1 or HTTP/2 protocol.
- When HTTPS is used, modern clients default to HTTP/2. This is controlled on the client, not on the HTTPS load balancer.
- You cannot disable HTTP/2 by making a configuration change on the load balancer. However, you can configure some clients to use HTTP 1.1 instead of HTTP/2. For example, with
curl
, use the--http1.1
parameter.- HTTPS load balancers do not support client certificate-based authentication, also known as mutual TLS authentication.