在AWS Elastic beanstalk中使用HTTP 2的最佳方法是什么

时间:2017-09-09 18:07:42

标签: elastic-beanstalk ruby-on-rails-4.2 http2

我在AWS上使用Elastic-beanstalk托管了一个Ruby on Rails应用程序,它现在可以使用HTTP 1.现在我想使用HTTP 2.有人可以建议我使用最佳方法

1 个答案:

答案 0 :(得分:1)

如果我没有记错,当您在Elastic Beanstalk环境中添加新的负载均衡器时,默认使用Classic Load Balancer(不支持HTTP/2),我认为解决方案将使用Application Load Balancer支持此信息,您可以找到此信息here。您还可以在创建环境时指定它,如here所示。这将仅允许客户端与HTTP/2your ALB will convert those HTTP/2 requests into HTTP/1.1 to communicate with your instance之间的ALB通信。

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."

相关问题