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

前端 未结 3 940
爱一瞬间的悲伤
爱一瞬间的悲伤 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:20

    Since this question was asked things have changed. It is now possible to host your site on S3 with a root domain.

    Instead of just having one bucket named "www.yourserver.com", you have to create another bucket with the nude (root) domain name, e.g. "yourserver.com".

    After that you will have to use Amazon's DNS service Route 53. Create an A record for the nude domain and a CNAME for the "www" hostname.

    Note that you will need to move the domain management of your domain to Amazon Route 53 completely.

    See for the detailled walk-through here: http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html

提交回复
热议问题