在AWS Elastic Beanstalk/Rails上配置HTTPS [英] Configuring HTTPS on AWS Elastic Beanstalk / Rails

查看:52
本文介绍了在AWS Elastic Beanstalk/Rails上配置HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Rails应用程序部署到AWS Elastic Beanstalk.我的设置可以通过HTTP正常运行,但是我无法设置HTTPS访问权限.

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.

我已经使用ACM创建了SSL证书,并将负载均衡器设置为侦听端口443.因此,我有端口80和443通过HTTPS进行侦听,并且都指向实例端口80.我确保我的安全组允许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.

使用此新配置,请求似乎无法到达服务器.我在这里错过了什么吗?

With this new configuration, requests do not seem to get through to the server. Have I missed something here?

非常感谢

添加了ELB侦听器图像

added ELB listeners image

推荐答案

默认情况下,EB实例端口正在侦听80.保存后,请确保使用 https://.

EB instance port is listening 80 by default. After save, make sure using https://.

此外,如果使用EB网址检查https,则不会加载证书.您需要将CNAME转换为您的域名.

Also, if using EB url for to check https, certificate will not load. You need to CNAME into yr domain name.

这篇关于在AWS Elastic Beanstalk/Rails上配置HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆