How to point a domain to serve static site from Amazon S3? (not sub-domain)

前端 未结 3 946
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 19:28

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.

Example: Setting foobar.com and w

3条回答
  •  被撕碎了的回忆
    2021-02-06 20:24

    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 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)

提交回复
热议问题