# 如何正确设置S3 bucket（非Amazon URL）？

**URL:** <https://meta.discourse.org/t/what-are-the-right-settings-to-use-s3-bucket-with-non-amazon-url/158612>\
**Category:** Self-hosting\
**Created:** [2020 年7 月 23 日 12:40 UTC](https://meta.discourse.org/t/what-are-the-right-settings-to-use-s3-bucket-with-non-amazon-url/158612 "2020-07-23T12:40:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)\
发布日期： [2020 年7 月 24 日 09:36 UTC](https://meta.discourse.org/t/what-are-the-right-settings-to-use-s3-bucket-with-non-amazon-url/158612/3 "2020-07-24T09:36:23Z")

</div>

嗯，好的。暂时遇到点小问题！😉 谢谢你的提醒 @riking。

AWS S3 有一个功能：[如果你将存储桶命名为与域名相同，只需为域名添加一条 CNAME 记录，一切就能顺利运行](https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingCustomURLs)。

所以我现在到处寻找如何将域名附加到_与域名名称不同_的存储桶上的信息……嗯……

@BryanV，你是如何将 [https://discourse-uploads.bokeh.org](https://discourse-uploads.bokeh.org) 指向你的 S3 存储桶的？

---

_[View the full topic](https://meta.discourse.org/t/what-are-the-right-settings-to-use-s3-bucket-with-non-amazon-url/158612)._
