amazon-web-services - aws - 浏览网站 - 找不到 404 - 没有这样的桶

标签 amazon-web-services amazon-s3

我为我的网站 volcalc.io 和 www.volcalc.io 创建了一个记录集,存储在一个 s3 存储桶中。

当我尝试浏览该网站时,我看到了这个错误:

404 Not Found

Code: NoSuchBucket
Message: The specified bucket does not exist
BucketName: volcalc.io
RequestId: xxx
HostId: xxx

桶名是www.volcalc.io,不是volcalc.io

如何更改它以使其查找名为 www.volcalc.io 的存储桶?

最佳答案

参见 Setting Up a Static Website Using a Custom Domain .

要允许对 example.com 和 www.example.com 的请求,您需要创建两个存储桶,即使您只在其中一个存储桶中托管内容。您将需要配置另一个存储桶以将请求重定向到托管内容的存储桶。

关于amazon-web-services - aws - 浏览网站 - 找不到 404 - 没有这样的桶,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43305632/

相关文章:

python - 从 SageMaker 将数据帧上传到 AWS S3 存储桶

amazon-web-services - 如何允许使用 Amazon 托管的站点嵌入 iFrame 中?

amazon-web-services - AWS CLI : aws s3 presign does not work for ap-east-1 (Hong Kong) region ("location constraint is incompatible for the region specific endpoint")

scala - Gremlin 与海王星 : Timed out while waiting for an available host

amazon-web-services - AWS API Gateway : Log Query String in Access Log

linux - aws cli 无法从 dynamodb docker 容器读取

c# - 如何使用 Amazon S3 REST api 获取文件的最后修改日期? (无需下载文件)

http - 将 PUT HTTP 请求代理到 AWS S3 失败

image - 用minio上传图像缓冲区

node.js - 在 aws elastic-beanstalk 上使用 Express 配置 https