在不使用CNAME的情况下将Route53的子域指向CloudFront [英] Point a subdomain from Route53 to CloudFront without using CNAME

查看:188
本文介绍了在不使用CNAME的情况下将Route53的子域指向CloudFront的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个子域(dev.example.com),需要将其指向我的Cloudfront发行版(xyz.cloudfront.net).我做了以下步骤

I have a subdomain (dev.example.com) and I need to point it to my cloudfront distribution (xyz.cloudfront.net). I did the following steps

1)创建了云端分布.创建云前端分布时,请不要在Cname字段中指定任何内容.

1) Created the cloudfront distribution. DID NOT specify anything in the Cname field while creating the cloud front distribution.

2)在Route53中使用"A"记录创建一个Alias记录,并将dev.example.com指向xyz.cloudfront.net.

2) Created an Alias record in Route53 with 'A' record and pointed dev.example.com to xyz.cloudfront.net.

但是此设置无效.仅当我在cloudfront发行版中指定cname字段时,它才有效.

But this setup does not work. It works only if I specify cname field in the cloudfront distribution.

有什么想法可以解决这个问题吗?

Any ideas to get this working ?

推荐答案

除非您仅打算使用CloudFront域名,否则您必须在备用域"中包含一个或多个自定义域名,例如dev.example.com.如果希望CloudFront为这些域提供服务,则在名称"框中输入.

Unless you only plan to use the CloudFront domain names, you must include one or more custom domain names, such as dev.example.com, in the Alternate Domain Names box if you want CloudFront to serve those domains.

这篇关于在不使用CNAME的情况下将Route53的子域指向CloudFront的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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