http를 https로 리다이렉트할 수 없습니다

안녕하세요,

저는 openlitespeed를 사용하며 리버스 프록시를 통한 Docker로 discourse를 설치했습니다.

http에서 https로 강제 리다이렉트를 할 수 없는데, 다음 방법들을 모두 시도해 보았습니다:

  1. 관리자 화면에서 force https 활성화
  2. app.yml 설정
- 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. htaccess를 설정하여 리다이렉트

이 문제를 해결하는 데 도움을 주실 수 있으신가요?

1개의 좋아요