How do I map multiple domains to the same bucket on Amazon S3?

走远了吗. 提交于 2020-06-13 20:01:09

问题


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?

Now I added a DNS entry:

my-domain.com CNAME mydomain.com

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


回答1:


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.




回答2:


We had the same issue and basically I set our CI to publish to two S3 buckets on release. Not ideal but keeps you clear from resetting caches in CloudFront on publish for the short term.



来源:https://stackoverflow.com/questions/11606086/how-do-i-map-multiple-domains-to-the-same-bucket-on-amazon-s3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!