如何点一域为静态的网站从Amazon S3吗? (不是子域)静态、不是、网站、点一域

2023-09-11 08:58:38 作者:葵雏

我看到几个人描述如何做到这一点与子域,但没有人在谈论如何做到这一点没有一个自定义域。

I see several people describing how to do this for a custom domain with sub-domain but no one talking about how to do it without one.

例如:Setting foob​​ar.com和www.foobar.com指向我的Amazon S3托管网站

我个人不想在WWW preFIX。请问有没有办法做到这一点?我太疯狂了,亚马逊将其设置为允许静态网站和定制的域,然后将其锁定到prefixed域?

I personally do not want the www prefix. Is there no way to make this happen? I seems crazy that Amazon would set it up to allow static sites and custom domains, then lock it down to prefixed domains?

在此先感谢,

推荐答案

不幸的是,你不能指向foobar.com到Amazon S3的桶和这样做的原因,是因为有DNS是如何工作的。

Unfortunately you can not point foobar.com to an Amazon S3 bucket and the reason for this has to do with how DNS works.

DNS不允许域(称为区域顶点)的根源指向另一个DNS名称(你不能有foobar.com设置为CNAME /只subdomain.foobar.com可以是CNAME)

DNS does not allow the root of a domain (called zone apex) to point to another DNS name (you can not have foobar.com set up as a CNAME / only subdomain.foobar.com can be a CNAME)