简体   繁体   English

在AWS Elastic Beanstalk / Rails上配置HTTPS

[英]Configuring HTTPS on AWS Elastic Beanstalk / Rails

I have deployed a Rails app to AWS Elastic Beanstalk. 我已经将一个Rails应用程序部署到AWS Elastic Beanstalk。 My setup works fine over HTTP, but I am having difficulty setting up HTTPS access. 我的设置在HTTP上运行良好,但我在设置HTTPS访问时遇到了困难。

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. 我使用ACM创建了SSL证书,并设置了我的负载均衡器以侦听端口443.所以我有端口80和443通过HTTPS监听,并且都指向实例端口80.我确保我的安全组允许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 编辑:添加了ELB侦听器图像

ELB听众

EB instance port is listening 80 by default. EB实例端口默认监听80。 After save, make sure using https:// . 保存后,请确保使用https://

Also, if using EB url for to check https, certificate will not load. 此外,如果使用EB url检查https,则不会加载证书。 You need to CNAME into yr domain name. 您需要将CNAME转换为您的域名。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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