# 主域名自动重定向到子域名（Digital Ocean Droplet）

**URL:** <https://meta.discourse.org/t/primary-domains-auto-redirects-to-sub-domain-digital-ocean-droplet/142432>\
**Category:** Self-hosting\
**Created:** [2020 年2 月 24 日 05:19 UTC](https://meta.discourse.org/t/primary-domains-auto-redirects-to-sub-domain-digital-ocean-droplet/142432 "2020-02-24T05:19:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
发布日期： [2020 年2 月 24 日 05:30 UTC](https://meta.discourse.org/t/primary-domains-auto-redirects-to-sub-domain-digital-ocean-droplet/142432/2 "2020-02-24T05:30:25Z")

</div>

请检查您的 DNS 文件，确保没有将 `example.com` 重定向到 `community.example.com` 的 CNAME 记录。

如果您使用 [官方安装指南](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) 并配备了 Let’s Encrypt SSL 证书，它已设置为自动续期。

至于为主域名安装 SSL 证书，以下是一些示例指南：

> **[Tutorials | DigitalOcean](https://www.digitalocean.com/community/tags/let-s-encrypt)**
>
> Follow along with one of our 8,000+ development and sysadmin tutorials.

---

_[View the full topic](https://meta.discourse.org/t/primary-domains-auto-redirects-to-sub-domain-digital-ocean-droplet/142432)._
