S3 static website index document

后端 未结 6 1882
轻奢々
轻奢々 2021-01-01 17:52

I\'m trying to upload my static website to my s3 bucket. I\'ve managed to accomplish this. I\'ve created my_bucket and then create a sub_bucket named test_folder and in that

6条回答
  •  借酒劲吻你
    2021-01-01 18:52

    I have been trying to do the same thing (serve static from s3) and reading this post made me realize that you need to place the index file (e.g. 'index.html') in the bucket outside of any folders.

    I had my index document in a templates folder. I had read the documentation but I was so frustrated that I couldn't understand what it was really saying. Sometimes, the really stupid mistakes are the most difficult to troubleshoot. Hope this helps somebody.

提交回复
热议问题