[英]AWS Elastic Beanstalk Load Balancer settings for SSL
I have a Ruby On Rails app configured for SSL only, and set up the following listener on my elastic load balancer: 我有一个仅配置用于SSL的Ruby On Rails应用,并在我的弹性负载均衡器上设置了以下侦听器:
With this configuration, my site application does not resolve, and I don't understand why. 使用此配置,我的站点应用程序无法解析,并且我不明白为什么。 If however, I change the instance protocol to HTTP everything works as expected.
但是,如果我将实例协议更改为HTTP,则一切正常。
Could someone explain why this is please? 有人可以解释为什么这样吗?
When configuring an ELB to listen on HTTPS, you must upload a certificate to IAM and link it from the ELB. 将ELB配置为侦听HTTPS时,必须将证书上载到IAM并从ELB链接它。
Procedure is described in the documentation 步骤在文档中描述
When using AWS ElasticBeanstalk, you can also configure your ELB and SSL certificate from a config
file located in your source's home/.ebextensions
使用AWS ElasticBeanstalk时,您还可以从位于
source's home/.ebextensions
的config
文件配置ELB和SSL证书。
Sample config file is : 示例配置文件为:
- namespace: aws:elb:loadbalancer
option_name: LoadBalancerHTTPSPort
value: 443
- namespace: aws:elb:loadbalancer
option_name: SSLCertificateId
value: arn:aws:iam::012345678901:server-certificate/my_certificate_name
Have a look at the detailed documentation for possible options 查看详细的文档以了解可能的选项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.