3

HTTPS And Your Custom Domain on Github Pages

 3 years ago
source link: https://fuzzyblog.io/blog/https/2019/05/07/https-and-your-custom-domain-on-github-pages.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

HTTPS And Your Custom Domain on Github Pages

May 7, 2019

Github for sometime now has supported https for *.github.io (aka GitHub pages). And they have allowed it for custom domains as well. However I was never able to figure this out until yesterday. Here was the magic process and well as some references.

My issue was that I had three “sites” hosted on GitHub pages:

I tend to look at my online presence mostly as my blog / recipes. I had actually forgotten that the root personal home page site even existed. And the issues preventing me from having https working amounted to this:

  • Changing the A records on my DNS provider (Amazon’s Route 53)
  • Waiting 24 hours for a certificate to be generated
  • Clicking the Enforce Https option on the GitHub Settings for the repo that drives fuzzyblog.io. This has to be done first
  • Clicking the Enforce Https option on the GitHub Settings for all other GitHub Pages repos (for me this was blog and recipes)

Note: If you can’t remember which git repo drives your GitHub Pages, look in the directory and file .git/config. It will be right there; look for a url / .git filename.

Note: In case you were wondering why you want https, there are lots of reasons but the best is that it should give your content at least a small boost in page rank.

Recommended Reading

Here are the recommended tech notes from Github on all this:


Posted In: #https #blogging #GitHub #git


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK