我可以将Network Solutions apex域redirect到www进行SSL连接吗?

我正在Heroku上运行一个网站,我的客户通过Network Solutions注册了一个自定义域名。 该网站运行在普通的HTTP和SSL上。

由于其分布式特性,Heroku要求自定义域名指向其服务器使用CNAME DNSlogging,针对www.example.com,而不是顶点Alogging,指向一个特定的IP地址。 因此,站点需要将apex域redirect到www子域; http://example.com成为http://www.example.com 。 而且, https://example.com需要redirect到https://www.example.com

一切似乎根据他们的文档( https://devcenter.heroku.com/articles/ssl-endpoint )在Heroku方面正确设置。 在configuration了DNS的networking解决scheme一侧,有一个CNAME通配符logging,指向所有子域到Heroku的SSL端点地址:

 CNAME * example-1234.herokussl.com 

要使redirect工作从apex域到www子域,我按照networking解决scheme提供的方向: http : //www.networksolutions.com/support/how-to-forward-your-network-solutions-domain-name免费博客服务/ 。 这导致以下Alogging:

 @ none 205.178.189.129 

作为这一切的结果, http://example.com正确地redirect到http://www.example.com 。 但是, https://example.com不仅不redirect,而且超时:

 % curl -kvI https://example.com * About to connect() to example.com port 443 (#0) * Trying 205.178.189.129... Operation timed out * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host 

通过HTTP连接确实有效,但:

 % curl -kvI http://example.com * About to connect() to example.com port 80 (#0) * Trying 205.178.189.129... connected * Connected to example.com (205.178.189.129) port 80 (#0) > HEAD / HTTP/1.1 > User-Agent: curl/7.20.0 (i386-apple-darwin8.11.1) libcurl/7.20.0 OpenSSL/0.9.7l zlib/1.2.3 libidn/1.15 > Host: example.com > Accept: */* > < HTTP/1.1 302 Moved Temporarily HTTP/1.1 302 Moved Temporarily < Content-Length: 0 Content-Length: 0 < Location: /?3e3ea140 Location: /?3e3ea140 < * Connection #0 to host example.com left intact * Closing connection #0 

所以Network Solutions的特殊redirect魔术似乎适用于HTTP,但不适用于SSL。 有谁知道他们是否支持这样的redirect?还是我需要说服我的客户迁移到新的注册商/ DNS提供商?

在发送任何HTTP响应头(包括HTTP状态码和位置头)之前进行HTTP协商。

这意味着,为了redirecthttps版本,Network Solution应该安装您的域名证书并configuration他们的服务器来侦听端口443。

我没有看到任何关于此function的提及,它看起来像是提供了一个简单的redirect器服务,但是这意味着您无法将HTTPS版本的根域redirect到www主机名。

一个可能的解决scheme是将根域指向Heroku应用程序(使用通过parsingSSL端点返回的A名称之一,某些DNS提供程序也为根域提供类似CNAME的function),然后在内部处理redirect。 这是处理Heroku托pipe的应用程序的根域到wwwredirect的最常见方式。