Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0211[WIKI] CNAME 配置说明 #12

Open
OMlalala opened this issue Feb 8, 2018 · 2 comments
Open

0211[WIKI] CNAME 配置说明 #12

OMlalala opened this issue Feb 8, 2018 · 2 comments
Assignees

Comments

@OMlalala
Copy link
Collaborator

OMlalala commented Feb 8, 2018

背景

0208, 大妈在 slack 中提醒:

du.zoomquiet.io/leo-editor-cn/ 这儿是怎么发布出来的?
俺奇怪的是你没有配置 CNAME 的哪
这是个很有用的技巧, 值得向大家说明, 推荐
这样就完成了一个主 域名的自主发布/目录安装
大家也就得进一步的约定有子网站的发布列表
以免冲突
因为 leo_cn 是开放的独立仓库
和以往 私有的自怼花圈有不同的行为
值得嗯哼

行动

0211 前, 配置 CNAME, 输出一篇 wiki

@OMlalala OMlalala self-assigned this Feb 8, 2018
@ZoomQuiet
Copy link

@OMlalala 超时了,,,没见成果?

@OMlalala
Copy link
Collaborator Author

终于明白了大妈为何有此一问:

du.zoomquiet.io/leo-editor-cn/ 这儿是怎么发布出来的?
俺奇怪的是你没有配置 CNAME 的哪

根据官方文档 User, Organization, and Project Pages - User Documentation

  • if project pages site owned by an organization
  • then pages default domain & host location on GitHub will be orgname.github.io/projectname

所以, 此仓库的默认域名应是: http://debuguself.github.io/leo-editor-cn
但是, 为何点击此仓库的 settings, GitHub Pages 部分中, 网站的发布地址变为了 http://du.zoomquiet.io/leo-editor-cn/ ?

继续看上述文档, Project Pages 部分的第三条明确说明:

If you are using a custom domain on User and Organization Pages sites, the custom domain will replace username.github.io in the URL for all Project Pages sites hosted under that account.

所以

  • 在 怼圈 中建立的仓库, 如果使用 github pages, 那么默认域名一定是 http://debuguself.github.io/ projectname
  • 因为 怼圈 的 Organization Pages sites 使用了 custom domain: du.zoomquiet.io, 证据在此, 所以怼圈的所有项目的域名会变成: http://du.zoomquiet.io/projectname.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants