Reputation: 8827
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?
Upvotes: 0
Views: 896
Reputation: 14905
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
Upvotes: 1