Amazon S3: Static Web Sites: Custom Domain or Subdomain

前端 未结 6 629
北海茫月
北海茫月 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条回答
  •  囚心锁ツ
    2020-12-02 05:45

    Update 2019 : AWS custom subdomain hosting in S3

    As of today following steps worked for me to have a working subdomain for AWS S3 hosted static website:

    1. Create a bucket with subdomain name. In this example www.subtest.mysite.com

    Note: Make sure on 'Permission' tab of bucket: -Block public access (bucket settings) -Access Control List & -Bucket policy are appropriately set to make sure bucket is public. ( Assuming you already did this for your root domain bucket, those settings can be mirrored on this subdomain bucket)

    1. Upload the index.html file in the bucket

    1. Create a CNAME record with your domain provider

提交回复
热议问题