Amazon CloudFront备用域名 [英] Amazon CloudFront Alternate Domain Names

查看:439
本文介绍了Amazon CloudFront备用域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Amazon及其所有服务完全陌生。我已经设置了Amazon S3并创建了CloudFront分配,但是我想要给此CloudFront分配提供自定义域名。

I'm totally new to Amazon and all of its services. I have set up Amazon S3 and created a CloudFront distribution but what I want is to give a custom domain name to this CloudFront distribution.

我已经在服务器上创建了一个子域,并将 CNAME 更改为CloudFront分配链接,但是我可以无法访问我在S3上的内容。谁能告诉我完整的内容,我如何设置备用域名?

I have created a sub-domain on my server and changed the CNAME to the CloudFront distribution link but I can not access to my content on S3. Can anyone tell me full go through how I can set up with alternate domain names?

推荐答案

为自定义域名赋予Amazon CloudFront分配:

To give a custom domain name to an Amazon CloudFront distribution:


  • 在创建CloudFront分配时提供备用域名

  • 在Route 53(或您自己的DNS提供商)中创建 CNAME 记录,该记录指向CloudFront发行版的URL(例如, d3i29vunzqzxrt。 cloudfront.net ),或在Route 53中使用 Alias =是 A 记录>,然后选择CloudFront分配。

  • Provide an Alternate Domain Name when creating your CloudFront distribution
  • Create a CNAME record in Route 53 (or your own DNS provider) that points to the URL of your CloudFront distribution (eg d3i29vunzqzxrt.cloudfront.net), or create an A record in Route 53 that uses Alias = Yes and select the CloudFront distribution.

从CloudFront控制台的帮助提示中:

From the help tip in the CloudFront console:


如果要使用自己的域名(例如www.example.com)代替CloudFront域名(例如d1234.cloudfront.net)作为URL,您的文件,最多可以指定100个CNAME。用逗号分隔CNAME或将它们放在新行中。您还需要使用DNS服务创建CNAME记录,以将www.example.com的查询路由到d1234.cloudfront.net。

If you want to use your own domain name (for example, www.example.com) instead of the CloudFront domain name (for example, d1234.cloudfront.net) for the URLs for your files, specify up to 100 CNAMEs. Separate CNAMEs with commas or put each on a new line. You also need to create a CNAME record with your DNS service to route queries for www.example.com to d1234.cloudfront.net.

这篇关于Amazon CloudFront备用域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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