# 主域名自动重定向到子域名（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:** 1

<div class="post-metadata">

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

</div>

我正在新 Droplet 上设置 Discourse，不知为何主域名 `.example.com` 会自动重定向到子域名 `community.example.com`。

此外，主域名未被 Let’s Encrypt SSL 证书覆盖，而子域名已被覆盖。

另外，该 SSL 证书的有效期仅至 2020 年 5 月。如何延长其有效期？如果有人能指点一些指南，解释如何解决重定向问题、如何为同一 SSL 证书添加主域名，以及如何大幅延长 SSL 证书的有效期，我将不胜感激。

---

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