github pages 开启 https 及配置 www

栏目: 服务器 · 发布时间: 4年前

内容简介:To set up a

https://help.github.com/en/articles/adding-or-removing-a-custom-domain-for-your-github-pages-site

配置 www 域名

Setting up a www subdomain

To set up a www  subdomain , such as  www.example.com you must configure a  CNAME record with your DNS provider.

警告:如果您的域启用了 HTTPS 强制实施,GitHub Pages 的服务器将不会自动路由重定向。您必须使用 www 域名注册商配置子域名和根域重定向。

github pages 开启 https 及配置 www

开启 https

https://help.github.com/en/articles/securing-your-github-pages-site-with-https https://help.github.com/en/articles/setting-up-an-apex-domain

  1. 添加 A 记录,至少有一条 A 指向以下 ip 地址。
  2. 添加 wwwCNAME 记录,指向 github pages 地址。
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

github pages 开启 https 及配置 www

如果 Enforce HTTPS 不可开启,先把 Custom domain 清空保存,再填入之前的地址,如 www.iosdevlog.com ,等上 1,2 分钟应该就可以开启 https 了。

测试一下

输入www.iosdevlog.com 和iosdevlog.com 都会跳转到 https://www.iosdevlog.com/

github pages 开启 https 及配置 www

参考: https://help.github.com/en/articles/using-a-custom-domain-with-github-pages


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Inside the C++ Object Model

Inside the C++ Object Model

Stanley B. Lippman / Addison-Wesley Professional / 1996-5-13 / USD 64.99

Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritanc......一起来看看 《Inside the C++ Object Model》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具