Configuring HTTPS on AWS Elastic Beanstalk / Rails

让人想犯罪 __ 提交于 2021-02-10 16:10:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!