我使用加急SSL在Heroku上有一个Rails应用程序(如果有任何重要的话)。
现在我已经从example.com永久转发到https://www.example.com。偶尔,我只在Chrome上注意到它,当我请求页面http://example.com时,我收到一个ERR_INSECURE_RESPONSE错误页面,然后几秒后,它转到https://www.example.com页面并加载就好了。< / p>
我在控制台中运行了检查员以查找http不安全的警告,但没有。我曾多次尝试卷曲,有一次我遇到了错误。
Bashar:example bashar$ curl -v http://example.com
* Rebuilt URL to: http://example.com/
* Hostname was NOT found in DNS cache
* Trying xx.xx.xx.xx...
* Connected to example.com (xx.xx.xx.xx) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.37.0
> Host: example.com
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
Bashar:example bashar$ curl -v http://example.com
* Rebuilt URL to: http://example.com/
* Hostname was NOT found in DNS cache
* Trying xx.xx.xx.xx...
* Connected to example.com (xx.xx.xx.xx) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.37.0
> Host: example.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Cache-Control: max-age=900
< Content-Type: text/html
< Location: https://www.example.com
* Server Microsoft-IIS/7.5 is not blacklisted
< Server: Microsoft-IIS/7.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Tue, 11 Aug 2015 09:15:46 GMT
< Content-Length: 0
< Age: 1
< Connection: keep-alive
<
* Connection #0 to host example.com left intact
我已经阅读过有关该主题的几个讨论,但没有找到与此类似的内容。有什么想法吗?
答案 0 :(得分:0)
我不确定是否有其他或更好的解决方案。但是我发现布莱恩Heroku SSL on root domain给出了这个答案 从GoDaddy转移到DNSimple来完成这个伎俩。无法再看到问题,甚至更好,该网站使用和不使用www,并使用http和https。似乎是