我有一个使用Elastic-beanstalk托管在AWS上的Ruby on Rails应用程序,它适用于HTTP 1。现在我想使用HTTP 2。有人能给我推荐最好的方法吗
发布于 2020-01-20 08:33:46
如果我没记错的话,当你添加一个新的负载均衡器到你的Elastic Beanstalk环境时,它默认使用一个不支持HTTP/2的Classic Load Balancer,我想解决方案应该是使用一个支持它的Application Load Balancer,你可以找到这个信息here。您也可以在创建环境时指定它,因为您可以看到here。这将只允许客户端和ALB your ALB will convert those HTTP/2 requests into HTTP/1.1 to communicate with your instance之间的HTTP/2通信。
如here所示:"If end-to-end HTTP/2 is a requirement for your application you can use a Layer 4 ELB ( Classic Load Balancer with TCP listener or Network Load Balancer). If you are interested also in SSL offloading the only option for now is Classic Load Balancer with an SSL listener."
https://stackoverflow.com/questions/46133663
复制相似问题