我有一个在Heroku上运行的网络应用程序和由1und1管理的域名(域名注册商1和1的德语版本)。要通过“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重定向?
答案 0 :(得分:1)
回答我的问题。
花了一些时间来解决这个问题后,我发现了这篇文章https://ubermotif.com/1and1-nightmare-bad-registrar-can-ruin-day。他们面临同样的问题。我决定打电话给1und1支持(他们只提供电话没有聊天或电子邮件票)。他们告诉这是他们的问题,GUI搞砸了,他们会手动将dns设置放到他们的数据库中。 该问题尚未解决,我正在等待dns更改将被应用/传播。
答案 1 :(得分:0)
此类错误是由服务器或网站引起的。您应该尝试以下提示来修复错误:
通过以下步骤删除或修改主机文件,删除错误程序或搜索“清除SSL”状态的网站:
开始菜单&gt;控制面板&gt;网络和互联网&gt;网络和共享中心
点击左侧按钮上的“Internet选项”打开“Internet属性”对话框后,进入“内容”选项卡,然后选择“清除SSL”。选项。
检查系统时间是否与当前时间匹配
检查防火墙以查看您的网站IP地址是否被阻止,如果被阻止则从中移除