简体   繁体   中英

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:

在此处输入图片说明

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.

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM