Drupal nginx 站点没有重定向到 https

问题描述 投票:0回答:0

我在 drupal 9 中有一个网站托管在 nginx 上。该网站需要从 http 重定向到 https,这对于 Windows 机器来说工作正常。但是 mac 用户会被重定向到 http,因此会因为网站在 https 上提供服务而出错。我该如何解决这个错误。 Htaccess 文件包含以下代码:

 RewriteRule ^ - [E=protossl]
  RewriteCond %{HTTPS} on
  RewriteRule ^ - [E=protossl:s]

我可以看到 nginx 容器也在为 443 服务。

.htaccess http nginx https drupal
© www.soinside.com 2019 - 2024. All rights reserved.