# Website does not forward to https

**URL:** <https://meta.discourse.org/t/website-does-not-forward-to-https/143707>\
**Category:** Self-hosting\
**Created:** [March 9, 2020, 4:10pm UTC](https://meta.discourse.org/t/website-does-not-forward-to-https/143707 "2020-03-09T16:10:39Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pr0cesor](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@pr0cesor](https://meta.discourse.org/u/pr0cesor)\
**Post date:** [March 12, 2020, 9:49am UTC](https://meta.discourse.org/t/website-does-not-forward-to-https/143707/9 "2020-03-12T09:49:04Z")

</div>

> [@itsbhanusharma](#):
>
> If You can post nginx configuration for discourse, I may be able to help you figure out the issue.

Below the entire discourse.conf nginx configuration as for today:

> server {
> 
> ```
> listen 80;
> listen [::]:80;
> server_name www.wolcengame.net;
> return 301 $scheme://wolcengame.net$request_uri;
> 
> ```
> 
> }
> 
> server {
> 
> ```
> listen 443 ssl http2;
> listen [::]:443 ssl http2;
> server_name wolcengame.net www.wolcengame.net;
> 
> ssl on;
> ssl_certificate /etc/letsencrypt/live/wolcengame.net/fullchain.pem; # managed by Certbot
> ssl_certificate_key /etc/letsencrypt/live/wolcengame.net/privkey.pem; # managed by Certbot
> ssl_dhparam /etc/letsencrypt/live/wolcengame.net/dhparams.pem;
> include /etc/nginx/snippets/ssl.conf;
> 
> http2_idle_timeout 5m; # up from 3m default
> 
> location / {
> proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock;
> proxy_set_header Host $http_host;
> proxy_http_version 1.1;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Forwarded-Proto https;
> proxy_set_header X-Real-IP $remote_addr;
> 
> }
> 
> ```
> 
> }

---

_[View the full topic](https://meta.discourse.org/t/website-does-not-forward-to-https/143707)._
