问题
I have deployed a Rails app to AWS Elastic Beanstalk. My setup works fine over HTTP, but I am having difficulty setting up HTTPS access.
I have created a SSL certificate using ACM and set my load balancer to listen to port 443. So I have ports 80 and 443 listening over HTTPS, and both pointing to instance port 80. I have made sure my security group allows HTTPS.
With this new configuration, requests do not seem to get through to the server. Have I missed something here?
Many thanks
EDIT: added ELB listeners image
回答1:
EB instance port is listening 80 by default. After save, make sure using https://
.
Also, if using EB url for to check https, certificate will not load. You need to CNAME into yr domain name.
来源:https://stackoverflow.com/questions/50755376/configuring-https-on-aws-elastic-beanstalk-rails