在AWS Elastic Beanstalk/Rails上配置HTTPS

编程入门 行业动态 更新时间:2024-10-28 05:16:29
本文介绍了在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.保存后,请确保使用 .

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

本文发布于:2023-11-15 07:52:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1592549.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Elastic   AWS   Beanstalk   HTTPS   Rails

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!