# SSL working on root, but not on www

**URL:** <https://meta.discourse.org/t/ssl-working-on-root-but-not-on-www/56647>\
**Category:** Product Support\
**Created:** [31 בינואר,‏ 2017,‏ 12:04pm UTC](https://meta.discourse.org/t/ssl-working-on-root-but-not-on-www/56647 "2017-01-31T12:04:33Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Nick\_Research](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_research/32/76648_2.png) [@Nick\_Research](https://meta.discourse.org/u/Nick_Research)\
**Post date:** [29 בנובמבר,‏ 2017,‏ 7:29am UTC](https://meta.discourse.org/t/ssl-working-on-root-but-not-on-www/56647/21 "2017-11-29T07:29:00Z")

</div>

> [@pfaffman](#):
>
> Did you enable let’s encrypt in app.yml or did you run it yourself?

I did it through app.yml

> [@dionbeukes](#):
>
> Please email me again if you have more issues and your solution in the end.

It now seems to be working. The issue I think was that I had an A record for the subdomain www (as in [www.example.com](http://www.example.com)) instead of using a CNAME record. For anyone reading this in future, the right config seems to be:

1. An A record pointing to the IP address of your host (e.g. Digital Oceans droplet)
2. A CNAME record with \* pointing to [example.com](http://example.com) (and NOT [www.example.com](http://www.example.com))

With this setup the letsencrypt through app.yml works a treat. Thanks all

---

_[View the full topic](https://meta.discourse.org/t/ssl-working-on-root-but-not-on-www/56647)._
