简体   繁体   English

将 CNAME 目标更改为 S3 存储桶

[英]Changing CNAME destination to an S3 bucket

I have an AWS S3 bucket named a.example.com which is hosting a static website.我有一个名为a.example.com的 AWS S3 存储桶,它托管一个静态网站。

Currently the CNAME DNS record for domain a.example.com points to a.example.com.s3-website.us-east-2.amazonaws.com .目前域a.example.com的 CNAME DNS 记录指向a.example.com.s3-website.us-east-2.amazonaws.com

Now I want to change the CNAME from a to b so that domain b.example.com should point to the same bucket, which will remain unchanged as a.example.com.s3-website.us-east-2.amazonaws.com .现在我想将 CNAME 从a更改为b,以便域b.example.com应指向同一个存储桶,该存储桶将保持不变为a.example.com.s3-website.us-east-2.amazonaws.com .

  • Can I simply change the CNAME to make it work?我可以简单地更改 CNAME 以使其工作吗?
  • Does something else in AWS S3 Bucket Dashboard need changing too? AWS S3 Bucket Dashboard 中的其他内容是否也需要更改?

Thank you very much for your help.非常感谢您的帮助。

You need to change only the CNAME from a to b so that domain b.example.com should point to the same bucket.您只需将 CNAME 从a更改为b,以便域b.example.com应指向同一个存储桶。 You do not have any change in Amazon site, you only need to point your new hostname to the old bucket.您在 Amazon 站点中没有任何更改,您只需要将新主机名指向旧存储桶。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM