通过DNS多个GitHub页面和自定义域 [英] Multiple GitHub Pages and custom domains via DNS
问题描述
我希望有一个用户页面和多个项目页面由 GitHub页面托管,但可在 ONE 自定义域(当然,每个GitHub Pages存储库都有子域名)。所以我的目标如下:
I want to have one user page and multiple project pages hosted by GitHub Pages but available under ONE custom domain (with subdomains for each GitHub Pages repository, of course). So my goals are as follows:
- 一个用户页面( http://florianwolters.github.com )可在 http://blog.florianwolters .de , http://www.florianwolters.de 和 http://florianwolters.de 。
- 正如我所希望的许多项目页面(例如 http://florianwolters.github.com/pear 可在 http://pear.florianwolters.de 。
- One user page (http://florianwolters.github.com) available under http://blog.florianwolters.de, http://www.florianwolters.de and http://florianwolters.de.
- As many project pages as I wish (e.g. http://florianwolters.github.com/pear available under http://pear.florianwolters.de.
根据我目前的理解,GitHub页面只允许在 CNAME
文件中定义的页面(用户页面和项目页面)的 ONE CNAME资源记录一个Git存储库的oot。
我已经尝试了许多事情(在域名提供商 EUserv 上播放DNS记录和标题重定向,但是我只能访问一个URL下的GitHub用户页面( http://blog.florianwolters.de )。我知道DNS更改可能会持续两天。
As of my current understanding, GitHub Pages do only allow ONE CNAME resource record for a page (both user pages and project pages) defined in the CNAME
file in the root of a Git repository.
I already tried out many things (playing around with DNS records and header redirects at my domain provider EUserv, but I can only access my GitHub user pages under one URL (http://blog.florianwolters.de). I am aware that DNS changes can take up until two days.
有人可以向我解释,我可以如何实现上述目标吗?我不能相信这不是可能,但我也不是DNS的专家等。
Can somebody explain to me, how I can achieve the goals described above? I can not believe that this is not possible but I am also no expert for DNS, etc.
如果上述是不可能的:你建议的解决方法是什么?我想访问我所有的GitHub页面一个域(和该域的子域)。
If the above is not possible: What is your suggested workaround? I do want to access all my GitHub pages under one domain (and the subdomains of that domain).
- < a href =http://help.github.com/pages/ =nofollow noreferrer> http://help.github.com/pages/
- GitHub项目页面的自定义域
- https://groups.google.com/forum/?fromgroups#!topic/github/AaAuoDK44Ag
- https://github.com/blog/315-cname-support-for-github-页面
- http:// code.lancepollard.com/custom-domain-github-pages
- http://help.github.com/pages/
- Custom domain for GitHub project pages
- https://groups.google.com/forum/?fromgroups#!topic/github/AaAuoDK44Ag
- https://github.com/blog/315-cname-support-for-github-pages
- http://code.lancepollard.com/custom-domain-github-pages
推荐答案
你能行的。请注意,所有DNS CNAME条目都指向相同的主机。
You can do it. Notice that all DNS CNAME entry point to the same host.
1:
github.com/florianwolters/florianwolters.github.com
1: github.com/florianwolters/florianwolters.github.com
CNAME文件内容: blog.florianwolters.de
CNAME file content: blog.florianwolters.de
DNS CNAME:博客> florianwolters.github.com
DNS CNAME: blog > florianwolters.github.com
2:
github.com/florianwolters/pear/tree/gh-pages
2: github.com/florianwolters/pear/tree/gh-pages
CNAME文件内容: pear.florianwolters.de
CNAME file content: pear.florianwolters.de
DNS CNAME:梨> florianwolters.github.com
DNS CNAME: pear > florianwolters.github.com
这篇关于通过DNS多个GitHub页面和自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!