# 为现有的Discourse安装使用第二个域名设置Let's Encrypt

**URL:** https://meta.discourse.org/t/set-up-lets-encrypt-with-second-domain-for-existing-discourse-install/356661
**Category:** Support
**Tags:** letsencrypt
**Created:** [2025年三月10日 17:14 UTC](https://meta.discourse.org/t/set-up-lets-encrypt-with-second-domain-for-existing-discourse-install/356661 "2025-03-10T17:14:41Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![oppman](https://avatars.discourse-cdn.com/v4/letter/o/aca169/32.png) [@oppman](https://meta.discourse.org/u/oppman)
#### Post date: [2025年三月11日 05:00 UTC](https://meta.discourse.org/t/set-up-lets-encrypt-with-second-domain-for-existing-discourse-install/356661/6 "2025-03-11T05:00:23Z")

</div>

谢谢。您可能指的是这些？

> [@Set up Let’s Encrypt with multiple domains / redirects](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685?u=oppman):
>
> NOTE: @pfaffman says: This page needs to be cleaned up. There is now a new ENV setting that will let you add more hostnames. In your app.yml under your DISCOURSE\_HOSTNAME line (it can go many places but that one makes sense), add DISCOURSE\_HOSTNAME\_ALIASES: domain.com,other.domain.com and early reports suggest that you’ll get valid certs for those domains and that accessing https://domain.com will properly redirect you to your DISCOURSE\_HOSTNAME without a certificate error. If you do that an…

> [@Let's Encrypte with multiple domains wasn't working for ECC certs](https://meta.discourse.org/t/lets-encrypte-with-multiple-domains-wasnt-working-for-ecc-certs/328109?u=oppman):
>
> How do I initiate the renewal of the certificate, simply delete the old one from /shared/ssl?

这些看起来相当复杂。我可能需要再注册一个域名，在另一个公司内部的 Discourse 安装上进行测试，然后再尝试在一个大型公共网站上操作。

---

_[View the full topic](https://meta.discourse.org/t/set-up-lets-encrypt-with-second-domain-for-existing-discourse-install/356661)._
