# SSL 对 www.domain.com 无效

**URL:** <https://meta.discourse.org/t/ssl-is-not-valid-for-www-domain-com/346525>\
**Category:** Self-hosting\
**Created:** [2025年一月10日 15:48 UTC](https://meta.discourse.org/t/ssl-is-not-valid-for-www-domain-com/346525 "2025-01-10T15:48:17Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2025年一月11日 19:26 UTC](https://meta.discourse.org/t/ssl-is-not-valid-for-www-domain-com/346525/14 "2025-01-11T19:26:56Z")

</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) 中的说明？

如果您在 OP 的模板中插入 `www.mysite.com`，它会生成此内容：

```plaintext
after_ssl:
   # tell letsencrypt what additional certs to get
    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /--keylength/
        to: "-d www.mysite.com --keylength"
    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /--fullchainpath/
        to: "-d www.mysite.com --fullchainpath"
        global: true

```

所以你是错的。

---

_[View the full topic](https://meta.discourse.org/t/ssl-is-not-valid-for-www-domain-com/346525)._
