github user pages for my domain not working - github-pages

i have a domain navyad.in and i want to host some static pages for that domain on github.
I'm using User pages not the project pages on github.
What i did :
1). created a github repo called navyad.github.io.
2). under master branch of repo i have index.html, CNAME, README.md files.
In CNAME file i have my domain mentioned.
when navyad.github.iois entered in browser, it takes me to the navyad.in. But the index file is not displayed. instead it is going to the page from where i have bought that domain www.net4.in.
what can be the issue ?.

That should mean that:
You did follow the first part of the GitHub help page on custom domain: "Setting the domain in your repo", and GitHub does take you to your actual domain
But you might not have completed the second step "Setting up DNS", which you should do in the net4.in administration page, setting up an A record pointing to 204.232.175.78.

Related

GitHub Pages User Project Custom Domain

I am trying to use the custom domain https://tahdo.app/ for my GitHub project page found at https://votemike.github.io/todo/
I'm most of the way there. But at the moment, https://tahdo.app/ shows a white screen with a console error of GET https://tahdo.app/todo/static/css/main.3bffc114.chunk.css net::ERR_ABORTED 404.
I assume this means that the https://votemike.github.io is being replaced with https://tahdo.app/ instead of replacing the whole GH Page URL with my custom domain.
I have the 4 A records that GitHub specify, and the CNAME pointing to votemike.github.io as they suggest.
Supplementary info: I'm using create-react-app and gh-pages to deploy to GH Pages
What am I doing wrong?
It turns out I needed to update the homepage field in my package.json file.
Read more about the answer here: https://dev.to/brettcnelson/getting-create-react-app-to-work-with-custom-domains-on-github-user-project-pages-2hp2

How to find out original github page for any custom domain?

Suppose i hosted my static site content on github page and then added CNAME and created a cusom domain www.xyz.com . How can I find in which github page is my site hosted by only looking up www.xyz.com .(If it is possible.)?
Yes i found it out myself. Do a DNS lookup and the canonical name is the original github page source.

Point www.domain.org to a specific Github project page?

I would like to point www.deeplearningbook.org directly to the Github project page goodfeli.github.io/book.
However, this github help page ( https://help.github.com/articles/about-custom-domains-for-github-pages-sites/#subdomains ) makes it sound like I could only have book.deeplearningbook.org or goodfeli.deeplearningbook.org/book point to goodfeli.github.io/book. Is there a way to do what I want?
You can configure a custom domain for User, Organization, and Project Pages.
An, yes the Github documentation is sometimes confusing.
In your case, you will point both deeplearningbook.org and www.deeplearningbook.org to goodfeli.github.io/book.
Go to your DNS provider and :
create two A records for your apex domain deeplearningbook.org pointing to 192.30.252.153 and 192.30.252.154 (documentation)
create a CNAME record for www.deeplearningbook.org pointing to goodfeli.github.io (documentation)
Go to your goodfeli.github.io/book Github repository an create a CNAME file at the root, containing deeplearningbook.org.
You then have to be patient. DNS replication can take up to 48 hours. Usually in one or two hours, you can reach your newly set domain.
I was eventually about to do this by adding A links to github.io rather than just the CNAME link. The full instructions are here: https://www.namecheap.com/support/knowledgebase/article.aspx/9645/2208/how-do-i-link-my-domain-to-github-pages

GitHub Pages: Redirect custom.domain.tld > user.github.io/project/

As the subject says, I'd like to have my custom domain redirect to a specific project's gh-pages branch.
I can easily get the standard behaviour:
custom.domain.tld > user.github.io (Where the static content lives in github.com/user/user.github.io/ master branch)
custom.domain.tld/project/ > user.github.io/project (Where the static content lives in github.com/project/ gh-pages branch)
But I cannot figure out how to get this:
custom.domain.tld > user.github.io/project (Where the static content lives
github.com/user/project/ gh-pages branch)
I very much appreciate pointers.
If your custom.domain.tld currently points to username.github.io, you'll need to remove the CNAME file from your user.github.io repository's Master branch. Then, add the same CNAME file (with contents custom.domain.tld) to your Project repository's gh-pages branch. If you've already set up DNS properly for your user.github.io repository, then you won't need to make any changes there, the new CNAME settings on GitHub will take care of it.
One note: when you assign a custom domain (eg custom1.domain.tld) to a User Pages repository, all Project Pages in that User's account will inherit their respective custom1.domain.tld/project address, as well as any directly assigned domain (eg custom2.domain.tld).
For example, I have:
www.nicksuch.com > nicksuch.github.io
www.openkentucky.org > nicksuch.github.io/openkentucky (also accessible at www.nicksuch.com/openkentucky)
DNS settings: CNAME - www > nicksuch.github.io (same for both domains, even though one is a User Page and the other is a Project Page)
More in GitHub's Setting up a custom domain with Pages.

Why this github hosted site(http://gitready.com) is nether `User/Organization Pages` nor `Project Pages`?

Github pages help page says there are two basic types of Pages available, User/Organization Pages and Project Pages:
In User/Organization Pages the repo must use the username/username.github.com naming scheme and username.github.com is the domain of the page, also, the content should be putted in master branch.
And in Project Pages the gh-pages branch is used to build and publish from.
But in this list of Jekyll-powered blogs, I find this repo, which have a custom domain http://gitready.com, seems doesn't meet the requirement of any one of the two kinds of pages(branch name, and repo naming scheme). But do seems hosted on github, according to this test.
Is this site hosted on github? If it is, why it doesn't meet the requirements?
First, since yesterday (April 5th 2013), this should be username/username.github.io
Second, you can have you own domain, with redirection to the right github address.
See "Setting up a custom domain with Pages".
GitHub Pages allows you to direct a domain name of your choice at your Page.
When you set up a custom domain, the server will automatically create a few redirects for you:
username.github.io ⇒ example.com for user pages
This looks to be an exception to the GitHub Pages rules (as you point out, it appears to be served from neither a master nor gh-pages branch), but the server signature still seems to match that for other GitHub Pages sites. Possible reasons for this include:
Nick Quaranto is a creator of Git Ready and is also one of the creators of Jekyll, the static site generator that powers GitHub Pages, and was able to get GitHub to make a tiny exception for this when it was moved from his User repo to its own Organization repo.
GitReady is strategically important to GitHub (encouraging more Git users), so they made an exception to support it outside of normal Pages rules, as it was an early, popular example of GitHub Pages' functionality