我已将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.保存后,请确保使用 .
EB instance port is listening 80 by default. After save, make sure using .
此外,如果使用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
发布评论