如何将多个域映射到Amazon S3上的同一存储桶? [英] How do I map multiple domains to the same bucket on Amazon S3?

查看:98
本文介绍了如何将多个域映射到Amazon S3上的同一存储桶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能这样做吗?我需要能够通过在浏览器的地址栏中键入my-domain.com来访问mydomain.com吗?

Is it possible to do that? I need to be able to access mydomain.com by typing in my-domain.com in the address bar of the browser?

现在,我添加了一个DNS条目:

Now I added a DNS entry:

my-domain.com CNAME mydomain.com

但这似乎不起作用.我收到404找不到错误.

But this doesn't seem to work. I get an 404 not found error.

推荐答案

您只能将单个域映射到S3存储桶.但是,您可以使用 Cloudfront 来完成此操作.

You can only map a single domain to your S3 bucket. However you could use Cloudfront to do this.

有关更多信息,请参见我对另一个类似问题的回答.

See my answer to another similar question for more information.

这篇关于如何将多个域映射到Amazon S3上的同一存储桶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆