# How to force redirect from https to http on Docker installation

**URL:** https://meta.discourse.org/t/how-to-force-redirect-from-https-to-http-on-docker-installation/26885
**Category:** Self-hosting
**Created:** [March 27, 2015, 7:46pm UTC](https://meta.discourse.org/t/how-to-force-redirect-from-https-to-http-on-docker-installation/26885 "2015-03-27T19:46:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kennym](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kennym/32/115557_2.png) [@kennym](https://meta.discourse.org/u/kennym)
#### Post date: [March 27, 2015, 7:46pm UTC](https://meta.discourse.org/t/how-to-force-redirect-from-https-to-http-on-docker-installation/26885/1 "2015-03-27T19:46:47Z")

</div>

I have setup Discourse on Digital Ocean with Docker, and it’s sending out with URLs that point to the https version of the site, however it’s not setup yet. Meanwhile they get a blank page - is there a way to tell nginx to redirect all traffic from https to the the http version of the site with Docker?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 27, 2015, 8:25pm UTC](https://meta.discourse.org/t/how-to-force-redirect-from-https-to-http-on-docker-installation/26885/2 "2015-03-27T20:25:18Z")

</div>

> [@Allow SSL / HTTPS for your Discourse Docker setup](https://meta.discourse.org/t/allowing-ssl-for-your-discourse-docker-setup/13847):
>
> This guide is likely out of date as there are now very few reasons not to use the built-in Let’s Encrypt certificate that Just Works. See also: 2023-04-10 @pfaffman says: This is left here mostly for historical purposes. So you’d like to enable SSL for your Docker-based Discourse setup? Let’s do it! This guide assumes you used all the [standard install](https://meta.discourse.org/t/142537?silent=true) defaults – a container configuration file at/var/discourse/containers/app.yml and Discourse docker is installed at: /var/discourse Buy a SS…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 27, 2015, 10:09pm UTC](https://meta.discourse.org/t/how-to-force-redirect-from-https-to-http-on-docker-installation/26885/3 "2015-03-27T22:09:35Z")

</div>


