xiaolvmu
V2EX  ›  问与答

求助大家一个二级域名的 SSL 证书问题~

  •  
  •   xiaolvmu · Dec 31, 2014 via Android · 12078 views
  •   You need to sign in to view this topic
    This topic created in 4234 days ago, the information mentioned may be changed or developed.
    目前,我使用 Apache 作为 HTTP 服务器。使用 Cloudflare 作为 CDN。CDN 模式是 Full SSL ( Strict,用户和 Cloudflare 连接采用 Cloudflare 的免费 SSL,CloudFlare 和 VPS 的连接采用 StartSSL。)
    为了绑定二级域名 xiaolvmu.techllage.com ,我设置了 xiaolvmu 的 A 记录。.htaccess 这样设置:
    # BEGIN BLOG
    RewriteCond %{HTTP_HOST} ^(www.)?xiaolvmu.techllage.com$
    RewriteCond %{REQUEST_URI} !^/xiaolvmu/
    RewriteRule ^(.*)$ /xiaolvmu/$1
    RewriteCond %{HTTP_HOST} ^(www.)?xiaolvmu.techllage.com$
    RewriteRule ^(/)?$ xiaolvmu/index.php [L]
    # END BLOG

    那么问题来了。这时我在 CloudFlare 中强制 HTTPS,之后,顶级域名完美实现 HTTPS。可是……二级域名直接出现致命错误。。。
    这是什么原因呢?
    5 replies    2014-12-31 21:50:15 +08:00
    BlueFly
        1
    BlueFly  
       Dec 31, 2014
    不是无限二级域名证书?
    LemonZest
        2
    LemonZest  
       Dec 31, 2014
    StartSSL的没用过,我是xoxo那里买的。
    StartSSL给的是什么类型的证书
    你一级域名HTTPS了
    二级域名要https 证书类型起码要是Wildcard SSL Certificate
    oott123
        3
    oott123  
       Dec 31, 2014
    你在 startssl 的证书只有 techllage.comwww.techllage.com 可用。二级域名不可以,你需要再去 startssl 申请另外一张。
    lolicon
        4
    lolicon  
       Dec 31, 2014
    不说是什么错误,提问意义何在?
    xiaolvmu
        5
    xiaolvmu  
    OP
       Dec 31, 2014 via Android
    谢谢大家提醒!刚刚去 StartSSL 申请了二级域名的证书。通过了~
    下一步应该复制一份 /etc/httpd/ssl.conf 中的<Virtualhost:443><Virtualhost> 这一段,填写新的SSL 证书了。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2542 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 15:55 · PVG 23:55 · LAX 08:55 · JFK 11:55
    ♥ Do have faith in what you're doing.