# Installing discourse with http only (no https)

**URL:** https://meta.discourse.org/t/installing-discourse-with-http-only-no-https/189846
**Category:** Self-hosting
**Created:** [May 9, 2021, 3:09pm UTC](https://meta.discourse.org/t/installing-discourse-with-http-only-no-https/189846 "2021-05-09T15:09:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fas/32/220141_2.png) [@fas](https://meta.discourse.org/u/fas)
#### Post date: [May 9, 2021, 3:09pm UTC](https://meta.discourse.org/t/installing-discourse-with-http-only-no-https/189846/1 "2021-05-09T15:09:56Z")

</div>

I am trying to install discourse on my system but am not having any success.  
I have a nginx server running on a host machine and discourse is running in a dedicated VM on that host. The nginx server takes acre of all ssl and all http to https redirection. I would like to run plain http between the nginx and the discourse installation. But I do not know how to disable discourse from using ssl.

With ssl configured, discourse sends and endless redirect sequence from my http source to https.

Here is my nginx config snippet

> ```
> server {
> listen 443 ssl;
> listen [::]:443 ssl;
> 
> server_name forum.example.com;
> 
> # SSL config ...
> ssl_certificate /etc/nginx/certificates/cloudflare-example.com.pem;
> ssl_certificate_key /etc/nginx/certificates/cloudflare-example.com.key;
> 
> # Reverse proxy to Discourse:
> location / {
> proxy_pass http://192.168.1.123:80/;
> proxy_http_version 1.1;
> proxy_set_header Host $http_host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Forwarded-Proto $scheme;
> proxy_read_timeout 120;
> }
> }
> 
> ```

I have tried to comment out the lines:

> # - “templates/web.ssl.template.yml”
> 
> # - “templates/web.letsencrypt.ssl.template.yml”

from app.yml, and then rebuilding using  
./launcher rebuild app  
but the http server doesn’t start up

Are there any instructions for such a setup somewhere? Or do I have to confgure ssl between my nginx and discourse?

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [May 9, 2021, 3:46pm UTC](https://meta.discourse.org/t/installing-discourse-with-http-only-no-https/189846/2 "2021-05-09T15:46:38Z")

</div>

> [@fas](#):
>
> but the http server doesn’t start up

I assume that’s because your nginx is listening to the same 80 port as the app (well maybe not, I read too fast and didn’t see the VM part of the problem 😅 ), using the web.socketed template should solve it (and the use of https).

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…
