Amazon S3 static hosting with Namecheap DNS - How to correctly route non-www prefixed url

后端 未结 3 736
情书的邮戳
情书的邮戳 2021-01-30 09:11

I have been reading other posts to try to get down to the bottom of this issue... but I need some clarification.

I am able to get all of my domain requests to hit my Ama

3条回答
  •  故里飘歌
    2021-01-30 09:27

    I used sirclesam's method above and it got me 95% of the way there but my site still wouldn't load until I went and changed some configurations in my AWS S3 console.

    Here are the steps to take:

    1. navigate to S3 dashboard
    2. click on the bucket you want to use (www.domain.com)
    3. click on the 'permissions' nav bar tab
    4. a box should appear with two columns and an 'edit' button in the top right corner of the box - click that edit button
    5. there should be 4 total checkboxes - UNCHECK the bottom TWO
    6. save and then try to access your site

    This worked for me. I had initially followed a guide which only indicated that one (the third) checkbox needed to be checked but that resulted in my bucket still blocking access so unchecking the last checkbox was what fixed the issue.

    For further clarification, the first checkbox (which should be UNCHECKED) reads: "Block public access to buckets and objects granted through new public bucket policies" and the second checkbox (which should ALSO be UNCHECKED)reads: "Block public and cross-account access to buckets and objects through any public bucket policies"

提交回复
热议问题