AWS Elastic Beanstalk 中的自定义 URL [英] Custom URL in AWS Elastic Beanstalk

查看:22
本文介绍了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

  1. 登录您的 AWS 账户
  2. 转到您的 EC2 面板并选择您所在的地区
  3. 从左侧导航菜单中选择负载均衡器
  4. 找到与您的 Beanstalk 应用程序相关的负载均衡器
  5. 在描述"选项卡中获取托管区域 ID
  6. 打开 Route53 面板
  7. 选择您的域托管区域
  8. 为 .YOUR-DOMAIN.com 添加记录
  9. 选择别名选项为是
  10. 搜索与您的应用相关的负载均衡器
  11. 使用您在第 5 步中获取的内容确认它是托管区域 ID
  12. 同样为 www.YOUR-DOMAIN.com 执行第 8-11 步.
  1. Login to your AWS Account
  2. Go to your EC2 Panel and select your region
  3. Select Load Balancer from left navigation menu
  4. Found Load Balancer which related to your Beanstalk App
  5. In Description Tab grab Hosted Zone ID
  6. Open Route53 Panel
  7. Select your domain hosted zone
  8. Add A Record for .YOUR-DOMAIN.com
  9. Select Alias option to Yes
  10. Search for your Load Balancer related to you app
  11. Confirm it's Hosted Zone ID with what you grabbed in step 5
  12. 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屋!

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