# איני יכול להפנות http ל-https

**URL:** <https://meta.discourse.org/t/i-can-not-redirect-http-to-https/202151>\
**Category:** Product Support\
**Created:** [30 באוגוסט,‏ 2021,‏ 6:25pm UTC](https://meta.discourse.org/t/i-can-not-redirect-http-to-https/202151 "2021-08-30T18:25:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)\
**Post date:** [30 באוגוסט,‏ 2021,‏ 6:25pm UTC](https://meta.discourse.org/t/i-can-not-redirect-http-to-https/202151/1 "2021-08-30T18:25:26Z")

</div>

Hi,

I use **openlitespeed** and install discourse by **docker with reserve proxy**

I can not force redirect from http to https, I try all this:

1. Enable `force https` in admin
2. Set up app.yml

```plaintext
- replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /server.+{/
     to: |
       server {
         if ($http_x_forwarded_proto = 'http'){
          return 301 https://$host$request_uri;
         }

```

1. Set up htaccess to redirect

Could you help me this issue?

---

_[View the full topic](https://meta.discourse.org/t/i-can-not-redirect-http-to-https/202151)._
