具有多个负载均衡器的AWS Elastic Beanstalk环境 [英] AWS Elastic Beanstalk environment with multiple Load Balancers

查看:133
本文介绍了具有多个负载均衡器的AWS Elastic Beanstalk环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下情况: 我有1个具有2个域的Rails应用程序,这些域中的每一个都有多个/动态子域. 此应用程序在AWS中使用负载平衡的Elastic Beanstalk.

I have the following situation: I have 1 Rails App that has 2 domains, each of these domains has multiple/dynamical subdomains. This app is in AWS using a load-balanced Elastic Beanstalk.

我需要的是指向我的单个Rails应用程序的这2个域可以在端口443的SSL下工作.

What i need is that those 2 domains that points to my single Rails App to work under SSL in port 443.

但是,由于Elastic Beanstalk仅具有一个负载均衡器,因此我只能在端口433上使用一个SSL证书:( 使用UCC SSL证书将不是解决方案,因为我需要将每个域证书都设为通配符,因此动态子域也将起作用.

But since Elastic Beanstalk has only one load balancer, I can only use one single SSL certificate on port 433 :( Using a UCC SSL certificate won't be the solution because i need each domain certificate to be wildcard, so the dynamic subdomains will also work.

关于如何使多个负载均衡器在Elastic Beanstalk环境中正常运行的任何想法?

Any thoughts about how to get multiple Load Balancers playing nicely with an Elastic Beanstalk Environment?

最好.

推荐答案

对于Elastic Beanstalk来说,这是一个艰难的选择,因为他们有Cookie切割器的方式来部署您的应用程序,如果不在他们的选择范围之内,那么您要么骇客"它,要么或仅使用使用EC2或纯云服务器的完全不同的解决方案.

It's a tough one with Elastic Beanstalk as they have a cookie cutter way of deploying your app and if it's not in their options then you have either "hack it" or just go with a completely different solution using EC2 or plain cloud servers.

您可以尝试做的事情是使用第二个域(和子域)的证书创建另一个ELB,并将其指向您的Elastic Beanstalk实例.如果转到ELB控制台,则应该可以看到第一个域的ELB.然后,您可以在第一个域的基础上创建第二个域.

One thing you can try is creating another ELB with the certificate of the second domain (and subdomains) and point it to your Elastic Beanstalk Instance. If you go to the ELB console you should be able to see the ELB for the first domain. Then, you can create your second domain based on the first domain.

希望有帮助.

这篇关于具有多个负载均衡器的AWS Elastic Beanstalk环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆