【问题标题】:Allow people to connect to my https website using http connection?允许人们使用 http 连接连接到我的 https 网站?
【发布时间】:2020-12-17 23:45:11
【问题描述】:

我的网站目前是 https。但是当尝试在新计算机上浏览它时,它总是显示 ERR_CONNECTION_REFUSED 除非我将其从 http://mywebsite.com 转到 https://mywebsite.com 之后就可以了,因为它已保存到浏览器中。

如何允许 http 连接到 https 网站?我试过了

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

但还是一样。

服务器:Apache2

【问题讨论】:

    标签: http https apache2


    【解决方案1】:

    在 certbot 上,允许重定向,以便它为您执行重写代码。

    【讨论】:

      猜你喜欢
      • 2018-04-05
      • 2018-01-14
      • 1970-01-01
      • 2017-07-13
      • 1970-01-01
      • 2013-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多