简体   繁体   English

github项目页面的自定义域

[英]Custom domain for github project pages

I have a custom domain name (www.example.com) pointing to my github user page (user.github.com). 我有一个自定义域名(www.example.com)指向我的github用户页面(user.github.com)。 Is it possible to have a second custom domain name like www.newdomain.com pointing to a project page of the same github account (user.github.com/project)? 是否可以有第二个自定义域名,例如www.newdomain.com指向同一github帐户(user.github.com/project)的项目页面?

I was able to correctly set up the CNAME in the gh-page branch of user.github.com/project, but I seem not able to correctly set up the DNS on my domain name provider (he seems not to like the subfolder /project). 我能够在user.github.com/project的gh-page分支中正确设置CNAME,但我似乎无法在我的域名提供商上正确设置DNS(他似乎不喜欢子文件夹/ p​​roject )。

Thanks a lot for all the help you can provide me! 非常感谢您能为我提供的所有帮助!

Actually I solved the issue... I had to point the DNS only to my main github user name. 其实我已经解决了这个问题...我只需要将DNS指向我的主要github用户名。 The CNAME in the gh-page branch of user.github.com/project took care of the rest and now www.newdomain.com correctly points to user.github.com/project while www.example.com points to (user.github.com user.github.com/project gh页分支中的CNAME负责其余部分,现在www.newdomain.com正确指向user.github.com/project,而www.example.com指向(user.github .COM

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM