Code: NoSuchBucket

后端 未结 2 1755
不知归路
不知归路 2020-12-14 08:46

So I\'ve followed the instructions in this excellent guide for setting up a redirect from sub.my-domain.com to my-domain.com/sub. I\'ve checked and

相关标签:
2条回答
  • 2020-12-14 09:12

    It's hard to tell since you (sensibly) obfuscated your question but the way you've written it, I think this is a case of not naming the bucket correctly for this application.

    sub.s3-website-eu-west-1.amazonaws.com
    

    If the web site is "sub.example.com," then that's not the correct convention, so I wonder if your bucket name is also not correct: the bucket should be named "sub.example.com" -- not "sub" -- and the web site endpoint should be sub.example.com.s3-website-eu-west-1.amazonaws.com.

    0 讨论(0)
  • 2020-12-14 09:19

    You can fix it by renaming your bucket as "Michael - sqlbot" says.

    But if you really want to keep your bucket name, then you can use CloudFront to forward requests to your existing bucket, and then use DNS to map the website name(s) to the CloudFront name.

    CloudFront is another Amazon Web Service that caches HTTP requests to your bucket in caches all around the world, so your website will be faster :-). But you will have to pay more :-(.

    0 讨论(0)
提交回复
热议问题