Amazon S3: Static Web Sites: Custom Domain or Subdomain

前端 未结 6 628
北海茫月
北海茫月 2020-12-02 04:56

Amazon.com just announced that one can host static web sites in a S3 bucket. I went to their setup page at http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?W

6条回答
  •  旧时难觅i
    2020-12-02 05:35

    Make sure that you follow the S3 DNS bucket naming conventions when creating your bucket.

    Then:

    1. Enable S3 Website support for the bucket using the AWS Management Console at Properties --> Website

    2. Make sure the files in the bucket have public read permissions

    3. Try the website using the endpoint listed in the Management Console

    4. Setup your CNAME using the listed endpoint (e.g. www.example.com CNAME www.example.com.s3-website-us-east-1.amazonaws.com)

提交回复
热议问题