设置GitHub Pages的域名时,遇到如下提示
1 | The CNAME wanghaorui.com is already taken. |
这么普通的域名,居然会被别人配置过。
最后让我寻找Github support的帮助。
于是我在https://github.com/contact 写了如下的内容
1 | Today I created a repository (GitHub Pages) with CNAME "wanghaorui.com" |
大概个把小时,github以邮件的形式通知你如何处理,我一直以为会在站内通知。
1 | We can release that domain name for you to use if you can verify your ownership of it with us. A quick way we can verify your ownership of the domain would be for you to add a TXT record to your domain. |
大体的意思就是,你需要配置一条TXT记录用来证明你是这个域名的所有者,搞定了发邮件给我们,让我们知道。
由于是周末,我过了2天才回复邮件
很快就收到了回复
1 | Thanks for doing that! I've cleared that domain from it's current location. You can add it to your site by following these steps: |
配置好域名后,就可以通过自己的域名访问了。