AWS Elastic Beanstalk 中的自定义 URL [英] Custom URL in AWS Elastic Beanstalk
本文介绍了AWS Elastic Beanstalk 中的自定义 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
AWS Elastic Beanstalk 建议使用以下格式的 url:http://{appname}.elasticbeanstalk.com/
AWS Elastic Beanstalk suggests to use url in the following format: http://{appname}.elasticbeanstalk.com/
但我需要将其更改为我自己的网址,例如 https://tarta.ai
But I need to change it to my own url, something like https://tarta.ai
怎么做?
推荐答案
注意:我的域使用 Amazon Route53.
Note: I use Amazon Route53 for my domain.
我知道这是个老问题,但由于我刚刚为我的一个应用程序完成了这个过程,我决定在这里分享它,这也可能对其他人有所帮助.这是我经历的步骤
I know this is old question but since I just done this process for one of my apps, I decided to share it here which may help others too. Here's the steps I've gone through
- 登录您的 AWS 账户
- 转到您的 EC2 面板并选择您所在的地区
- 从左侧导航菜单中选择负载均衡器
- 找到与您的 Beanstalk 应用程序相关的负载均衡器
- 在描述"选项卡中获取托管区域 ID
- 打开 Route53 面板
- 选择您的域托管区域
- 为 .YOUR-DOMAIN.com 添加记录
- 选择别名选项为是
- 搜索与您的应用相关的负载均衡器
- 使用您在第 5 步中获取的内容确认它是托管区域 ID
- 同样为 www.YOUR-DOMAIN.com 执行第 8-11 步.
- Login to your AWS Account
- Go to your EC2 Panel and select your region
- Select Load Balancer from left navigation menu
- Found Load Balancer which related to your Beanstalk App
- In Description Tab grab Hosted Zone ID
- Open Route53 Panel
- Select your domain hosted zone
- Add A Record for .YOUR-DOMAIN.com
- Select Alias option to Yes
- Search for your Load Balancer related to you app
- Confirm it's Hosted Zone ID with what you grabbed in step 5
- Do steps 8-11 for www.YOUR-DOMAIN.com as well.
参考资料
http://aws.typepad.com/aws/2011/05/moving-ahead-with-amazon-route-53.html
这篇关于AWS Elastic Beanstalk 中的自定义 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文