# Let's Encrypt 在无 www 时正常工作，有 www 时则不行

**URL:** https://meta.discourse.org/t/letsencrypt-working-without-www-not-with-www/139004
**Category:** Support
**Created:** [2020年一月18日 06:17 UTC](https://meta.discourse.org/t/letsencrypt-working-without-www-not-with-www/139004 "2020-01-18T06:17:47Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Jarland](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jarland/32/166904_2.png) [@Jarland](https://meta.discourse.org/u/Jarland)
#### Post date: [2020年一月19日 08:19 UTC](https://meta.discourse.org/t/letsencrypt-working-without-www-not-with-www/139004/11 "2020-01-19T08:19:01Z")

</div>

好的，我已经看到一个尝试，但因文件被修改而中断，这破坏了他们在 app.yml 中设置的修改文件的方式：

> [@Problem in installing Let's Encrypt SSL for www and non-www](https://meta.discourse.org/t/problem-in-installing-lets-encrypt-ssl-for-www-and-non-www/88515/10):
>
> Similar situation here. I installed Discourse on example.com and had a CNAME DNS record for www.example.com. Now I went to [https://check-your-website.server-daten.de](https://check-your-website.server-daten.de) and got a bad rating, because the SSL certificate was not valid for www.example.com and also http://www.example.com was forwarding to https://example.com. Steps I took: Replace CNAME record for www.example.com by A and AAAA records. Add www.example.com as an additional domain to app.yml following [Redirect additional domain(s) t…](https://meta.discourse.org/t/redirect-single-multiple-domain-s-to-your-discourse-instance/18492)

无论我们是直接编辑文件，还是让 app.yml 在之后进行编辑，更新都有可能更改该文件，从而破坏您的编辑方式。

---

_[View the full topic](https://meta.discourse.org/t/letsencrypt-working-without-www-not-with-www/139004)._
