github pages 开启 https 及配置 www

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

内容简介: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


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

查看所有标签

猜你喜欢:

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

ppk on JavaScript, 1/e

ppk on JavaScript, 1/e

Peter-Paul Koch / New Riders Press / 2006-09-20 / USD 44.99

Whether you're an old-school scripter who needs to modernize your JavaScripting skills or a standards-aware Web developer who needs best practices and code examples, you'll welcome this guide from a J......一起来看看 《ppk on JavaScript, 1/e》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

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

在线XML、JSON转换工具