内容简介:To set up a
https://help.github.com/en/articles/adding-or-removing-a-custom-domain-for-your-github-pages-site
配置 www 域名
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 域名注册商配置子域名和根域重定向。
开启 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
- 添加
A记录,至少有一条A指向以下ip地址。 - 添加
www的CNAME记录,指向 github pages 地址。
185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153
如果 Enforce HTTPS 不可开启,先把 Custom domain 清空保存,再填入之前的地址,如 www.iosdevlog.com ,等上 1,2 分钟应该就可以开启 https 了。
测试一下
输入www.iosdevlog.com 和iosdevlog.com 都会跳转到 https://www.iosdevlog.com/
参考: https://help.github.com/en/articles/using-a-custom-domain-with-github-pages
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
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》 这本书的介绍吧!