code:NoSuchBucketcode、NoSuchBucket

2023-09-11 09:04:28 作者:Sean ﹌ 初告白°

所以,我已经按照this优秀导游从 sub.my-domain.com 重定向设置为 my-domain.com/sub 。我检查和双重检查我的设置,但是当我访问 sub.my-domain.com 我得到的错误

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 double checked my settings, but when I access sub.my-domain.com I get the error

code:NoSuchBucket   消息:指定的水桶不存在   BucketName:sub.my-domain.com

404 Not Found

Code: NoSuchBucket Message: The specified bucket does not exist BucketName: sub.my-domain.com

如果我去 sub.s3-website-eu-west-1.amazonaws.com (在我创建桶)这是正确的重定向,我< STRONG> 100%确定双加证实的URL的CNAME记录集是正确的。这是怎么回事?

If I go to sub.s3-website-eu-west-1.amazonaws.com (the bucket I created) it is redirected correctly, and I am 100% certain double-plus confirmed that the url in the CNAME Record Set is the correct one. What is going on?

看起来 BucketName 错误消息是错误的,但是这是为什么?

It seems like BucketName in the error message is wrong, but why is this?

推荐答案

这很难说,因为你(理智)混淆你的问题,但你写的方式,我认为这不是正确的命名桶的情况下,此应用程序。

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

如果该网站是sub.example.com,那么这不是正确的习惯,所以我不知道,如果你的水桶名字也是不正确的:斗应该被命名为sub.example.com - 不子 - 与网站终点应该是sub.example.com.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.