使用cloudflare将CNAME分配给Amazon S3中的我的静态网站存储桶 [英] Assigning a CNAME to my static-website-bucket in amazon S3 using cloudflare

查看:253
本文介绍了使用cloudflare将CNAME分配给Amazon S3中的我的静态网站存储桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的兄弟创建一个网站(我的第一个网站),并决定通过Amazon s3托管整个网站.到目前为止,我已经完成了通常的设置:

I am working on creating a website for my brother (my first website) and have decided to host the whole site through amazon s3. I have done the usual setup so far:

  1. 使用所需域的名称(www.website.com)创建存储桶.

  1. Create bucket with the name of the desired domain (www.website.com).

为存储桶创建一个网站,并分配索引文档和错误页面.

Make the bucket a website and assign the index document and error page.

上载所有内容并将其公开.

upload all of the content and make it public.

通过存储桶端点链接 http://www.website.com.s3-website-us-east-1.amazonaws.com/

在其他有关stackoverflow的教程之后,我尝试通过我的DNS提供程序创建一个CNAME.不幸的是,我的域名注册商(1and1.com)不允许我输入亚马逊端点链接,说该网址太长.

Following other tutorials on stackoverflow I then attempted to create a CNAME through my DNS provider. Unfortunately, my domain registrar (1and1.com) would not let me enter the amazon endpoint link saying that the url was too long.

在本教程的评论部分中,我进一步关注的是使用cloudflare.com解决此问题的人的评论.

Further down in the comments section of the tutorial I was following was a comment from someone who surpassed this problem by using cloudflare.com.

因此,我注册了cloudflare.com,并通过1and1.com将名称服务器更改为cloudflare cloudflare服务器.一切传播之后,我尝试在cloudflare上创建一个CNAME到亚马逊存储桶端点,但是我无法使其正常工作.

So, I signed up for cloudflare.com and changed the nameservers via 1and1.com to cloudflare cloudflare ones. After everything propagated I attempted to create a CNAME on cloudflare to the amazon bucket endpoint but i cant get it to work.

如何在我的域名上获取我的Amazon S3存储桶?

How can I get my amazon s3 bucket on my domain name?

推荐答案

您是否已查看/查看了我们知识库中的这些详细信息?

Have you seen/reviewed these details from our knowledge base? https://support.cloudflare.com/hc/en-us/articles/200168926-How-do-I-use-CloudFlare-with-Amazon-s-S3-Service-

它包括正确指向Amazon S3存储桶的步骤.不过出于隐私原因,我建议您直接通过 https://support.cloudflare.com 打开CloudFlare的支持记录. a>,以便我们的支持团队可以查看您帐户的具体详细信息以提供建议.

It includes the steps to correctly point at an Amazon S3 bucket. For privacy reasons though, I'd recommend you open a support ticket with CloudFlare directly via https://support.cloudflare.com so our support team can look at your account's specific details to offer suggestions.

p.s.免责声明:我在CloudFlare工作.

p.s. Disclaimer: I work at CloudFlare.

这篇关于使用cloudflare将CNAME分配给Amazon S3中的我的静态网站存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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