# Let's Encrypt und Multisite (auf 2 Containern)

**URL:** <https://meta.discourse.org/t/lets-encrypt-and-multisite-on-2-containers/91962>\
**Category:** Product Support\
**Created:** [10. Juli 2018 um 10:58 UTC](https://meta.discourse.org/t/lets-encrypt-and-multisite-on-2-containers/91962 "2018-07-10T10:58:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![CamilleRoux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camilleroux/32/119575_2.png) [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)\
**Post date:** [10. Juli 2018 um 10:58 UTC](https://meta.discourse.org/t/lets-encrypt-and-multisite-on-2-containers/91962/1 "2018-07-10T10:58:03Z")

</div>

Continuing the discussion from [Setting up Let’s Encrypt with Multiple Domains](https://meta.discourse.org/t/setting-up-let-s-encrypt-with-multiple-domains/56685/16):

Hi!  
I tried this [how to](https://meta.discourse.org/t/setting-up-let-s-encrypt-with-multiple-domains/56685) but nothing changed and `/etc/runit/1.d/letsencrypt` is not modified.  
I’ve 2 containers (data.yml) and web.yml and want to use multisite config.

Here the after\_ssl I used (from [Set up Let’s Encrypt with multiple domains / redirects - #15](https://meta.discourse.org/t/setting-up-let-s-encrypt-with-multiple-domains/56685/15)):

```
after_ssl:
    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /-k 4096 -w \/var\/www\/discourse\/public/
        to: |
          -d forum.test.com -d forum2.test.com -d forum-test.test.com -k 4096 -w /var/www/discourse/public

    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /-k 4096 --force -w \/var\/www\/discourse\/public/
        to: |
          -d forum.test.com -d forum2.test.com -d forum-test.test.com -k 4096 --force -w /var/www/discourse/public

```

The only discourse the default one (DISCOURSE\_HOSTNAME).  
For the other one, I get the following error when I do a curl:

`curl: (51) SSL: no alternative certificate subject name matches target host name 'forum-test.test.com'`

---

_[View the full topic](https://meta.discourse.org/t/lets-encrypt-and-multisite-on-2-containers/91962)._
