【问题标题】:1and1 HTTPS redirect does not work but HTTP does1and1 HTTPS 重定向不起作用,但 HTTP 可以
【发布时间】:2017-12-15 16:50:17
【问题描述】:

我有一个在 Heroku 上运行的 Web 应用程序,域由 1und1(德国版的域名注册商 1and1)管理。为了通过“example.com”使该应用程序可用,我执行了以下操作:

  1. 在 1und1 中创建了 www.example.com 子域。
  2. 按照 Heroku 指南中的说明将其附加到 www.example.com.herokudns.com (CNAME www.example.com.herokudns.com)。
  3. 从 1und1 订购 SSL 证书并使用它们在 Heroku 端设置 HTTPS。
  4. 设置 HTTP 重定向 example.com -> https://www.example.com 使顶级域指向 Heroku。

这一切都很好,直到我尝试通过https://example.com 获取应用程序 - Chrome 向我显示“此站点无法提供安全连接”页面并显示 ERR_SSL_PROTOCOL_ERROR。

cURL 输出:

#1.
curl https://example.com
curl: (35) Server aborted the SSL handshake

#2.
curl -vs example.de
Rebuilt URL to: example.de/
Trying <example.de 1und1 IP address here>...
TCP_NODELAY set
Connected to example.de (<example.de 1und1 IP address here>) port 80 (#0)
GET / HTTP/1.1
Host: example.de
User-Agent: curl/7.51.0
Accept: */*

< HTTP/1.1 302 Found
< Content-Type: text/html; charset=iso-8859-1
< Content-Length: 203
< Connection: keep-alive
< Keep-Alive: timeout=15
< Date: Tue, 11 Jul 2017 14:19:30 GMT
< Server: Apache
< Location: http://www.example.de/
...

#3.
curl -vs https://example.de
Rebuilt URL to: https://example.de/
Trying <example.de 1und1 IP address here>...
TCP_NODELAY set
Connected to wavy.de (<example.de 1und1 IP address here>) port 443 (#0)
Unknown SSL protocol error in connection to example.de:-9838
Curl_http_done: called premature == 1
Closing connection 0

那么,问题是:如何使用 1und1 和 Heroku 设置 HTTPS 重定向?

【问题讨论】:

  • 根据我的经验,通过1and1安装ssl证书后可能需要几个小时才能生效。
  • @user1628733,感谢您的回复!可能我应该在帖子中提到它,但我在 2-3 周前安装了 SSL 证书并且 HTTPS 确实有效。

标签: ssl redirect heroku https


【解决方案1】:

回答我的问题。

在用谷歌搜索了这个问题后,我发现了这篇文章https://ubermotif.com/1and1-nightmare-bad-registrar-can-ruin-day。他们面临同样的问题。我决定打电话给 1und1 支持(他们只提供电话,不提供聊天或电子邮件票)。他们告诉这是他们的问题,GUI 搞砸了,他们将手动将 dns 设置放到他们的数据库中。 问题尚未解决,我正在等待应用/传播 dns 更改。

【讨论】:

    【解决方案2】:

    这种类型的错误来自服务器或网站。您应该尝试以下提示来修复错误:

    • 禁用 QUIC 协议
    • 通过删除不良程序或您搜索的网站来删除或修改主机文件通过以下步骤清除 SSL 状态:

      开始菜单 > 控制面板 > 网络和 Internet > 网络和共享中心

      单击左侧按钮的 Internet 选项 当 Internet 属性对话框打开时,进入内容选项卡并选择“清除 SSL”选项。

    • 检查系统时间是否与当前时间匹配

    • 检查防火墙以查看您的网站 IP 地址是否被阻止,如果被阻止则将其删除

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-10
      • 2018-06-11
      • 2015-07-28
      • 2022-01-14
      • 2021-04-15
      • 2018-01-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多