# HTTPS doesn't work when installing Discourse in a subfolder (Ubuntu 20 and Plesk)

**URL:** https://meta.discourse.org/t/https-doesnt-work-when-installing-discourse-in-a-subfolder-ubuntu-20-and-plesk/273021
**Category:** Self-hosting
**Tags:** unsupported-install, subfolder
**Created:** [July 14, 2023, 2:12pm UTC](https://meta.discourse.org/t/https-doesnt-work-when-installing-discourse-in-a-subfolder-ubuntu-20-and-plesk/273021 "2023-07-14T14:12:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Alessandra\_Paolillo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alessandra_paolillo/32/313033_2.png) [@Alessandra\_Paolillo](https://meta.discourse.org/u/Alessandra_Paolillo)
#### Post date: [July 14, 2023, 2:12pm UTC](https://meta.discourse.org/t/https-doesnt-work-when-installing-discourse-in-a-subfolder-ubuntu-20-and-plesk/273021/1 "2023-07-14T14:12:27Z")

</div>

I have Ubuntu 20 and Plesk. I install Discourse in a subdomain using docker. I followed post instructions and I can install discourse with http, but when I try to activate the admin user the page doesn’t load properly because the javascript files are not loaded.  
If I try to to install with https I have problems with loading the certificate.  
Someone managed to install Discourse with HTTPS?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [July 14, 2023, 2:19pm UTC](https://meta.discourse.org/t/https-doesnt-work-when-installing-discourse-in-a-subfolder-ubuntu-20-and-plesk/273021/2 "2023-07-14T14:19:56Z")

</div>

Discourse installs with https just fine, but as you can see above discourse with plesk isn’t officially supported.

---

<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: [July 14, 2023, 6:25pm UTC](https://meta.discourse.org/t/https-doesnt-work-when-installing-discourse-in-a-subfolder-ubuntu-20-and-plesk/273021/3 "2023-07-14T18:25:47Z")

</div>

I think that you need to turn on `force_https`. One way to do that is with an ENV

```
 DISCOURSE_FORCE_HTTPS: true

```

---

<div class="post-metadata">

### Author: ![Alessandra\_Paolillo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alessandra_paolillo/32/313033_2.png) [@Alessandra\_Paolillo](https://meta.discourse.org/u/Alessandra_Paolillo)
#### Post date: [July 27, 2023, 7:51am UTC](https://meta.discourse.org/t/https-doesnt-work-when-installing-discourse-in-a-subfolder-ubuntu-20-and-plesk/273021/4 "2023-07-27T07:51:53Z")

</div>

Thanks!  
After several attempts I installed discourse without the https template. After the installation finished I enabled using Plesk https certificate. It works!
