【问题标题】:Secure https redirect with github pages and letsencrypt doesn't work使用 github 页面进行安全 https 重定向,而letsencrypt 不起作用
【发布时间】:2020-12-22 18:26:36
【问题描述】:

我有两个域:example.com 和 example.org。

HTTP://www.example.com redirects to HTTPS://www.example.org (as expected)  
HTTP://example.com redirects to HTTPS://www.example.org (as expected)  
HTTP://www.example.org redirects to HTTPS://www.example.org (as expected)  
HTTP://example.org redirects to HTTPS://www.example.org (as expected)  
HTTPS://example.org redirects to HTTPS://www.example.org (as expected) 

但是,使用 HTTPS 不起作用。我认为这是因为我还没有证明我的 CA 拥有 example.com(让我们通过 GitHub 页面加密)。

HTTPS://www.example.com should redirect to HTTPS://www.example.org  
HTTPS://example.com should redirect to HTTPS://www.example.org  

This 的问题是相关的,但它有点超出我的想象,我不确定如何使用 Namecheap 在 Github 页面上实现它。

【问题讨论】:

    标签: ssl https dns github-pages


    【解决方案1】:

    我通过迁移到 netlify 解决了这个问题。我推荐。

    我使用herehere 的信息创建了一个如下所示的_redirects 文件:

    https://example.com/* https://www.example.org/:splat 301!
    https://www.example.com/* https://www.example.org/:splat 301!
    http://example.com/* https://www.example.org/:splat 301!
    http://www.example.com/* https://www.example.org/:splat 301!
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-15
      • 2020-03-09
      • 2013-04-01
      • 2016-08-23
      • 1970-01-01
      • 2015-01-31
      • 1970-01-01
      相关资源
      最近更新 更多