Question

GitHub Pages - what am I missing?

  • Posted June 5, 2014

The steps I’ve taken to set up my GitHub Pages to reach my domain:

  1. register example.com with gandi.net
  2. change example.com DNS to point to digital ocean
  3. create a droplet
  4. create a new domain on DO that points to the droplet
  5. create two A records (www.example.com -> 192.30.252.153) and (www.example.com -> 192.30.252.154) based on github instructions
  6. create two CNAME records (www -> myproject.github.io) and (* -> @)

My CNAME file at github contains www.example.com

(just used www.example.com as an example obviously)

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

Never mind, it works! Thank you

Okay so now www.example.com works but example.com still does not.

The first step in troubleshooting this is whether or not you can see your site by going to myproject.github.io If so, then its an issue with DNS settings. If not, than it’s an issue with your page on the GitHub side. <br> <br>Either way, it seems like you might have a DNS issue as well. When following the instructions GitHub, make sure to follow the instructions of a subdomain, as that is what www is: <br> <br>https://www.digitalocean.com/community/articles/how-to-use-digitalocean-s-dns-for-custom-github-urls <br> <br>It doesn’t look like you need the A record pointing to 192.30.252.153 and 192.30.252.154. Just the CNAME pointing www to myproject.github.io

The wildcard CNAME record is most likely conflicting with the other CNAME record. Try deleting it.