Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use HTTPS/SSL on GitHub Pages sites with a custom domain?

Is there any way to use HTTPS/SSL on GitHub Pages sites that use a custom domain? SSL is recommended for better search engine ranking and there are a lot of other uses for it beyond that.

like image 757
bawa g Avatar asked Feb 11 '17 04:02

bawa g


People also ask

Does GitHub Pages support custom domain?

You can customize the domain name of your GitHub Pages site. GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.

Are GitHub Pages secure?

Privately published sites are available at a different subdomain than publicly published sites. This ensures that your GitHub Pages site is secure from the moment it's published: We automatically secure every subdomain of *.


2 Answers

Custom domains on GitHub Pages do support HTTPS / SSL:

GitHub Pages has supported custom domains since 2009, and sites on the *.github.io domain have supported HTTPS since 2016. Today, custom domains on GitHub Pages are gaining support for HTTPS as well, meaning over a million GitHub Pages sites will be served over HTTPS.

https://blog.github.com/2018-05-01-github-pages-custom-domains-https/

  1. Go to https://github.com/**username**/**repo**/settings

  2. Check the checkbox "Enforce HTTPS":

Enforce HTTPS


Prior to May 1, 2018, SSL was supported by GitHub Pages only on sites using a *.github.io domain: https://help.github.com/articles/securing-your-github-pages-site-with-https/

like image 69
Gautam Krishna R Avatar answered Sep 25 '22 22:09

Gautam Krishna R


It's now possible to use HTTPS on GitHub Pages sites with a custom domain

If you are using CNAME or ALIAS records for your custom domain, you’re all set and your site should be accessible over HTTPS.

If you are using A records, you must update your site’s DNS records with new IP addresses. Please see our guide to setting up your custom domain with Pages and update any A records you might have set.

Once you have HTTPS working:

You can optionally “Enforce HTTPS” for your domain in your repository’s settings, ensuring users who request your site over HTTP are upgraded to HTTPS.

Enforce HTTPS repository configuration

You can read the full announcement here: https://blog.github.com/2018-05-01-github-pages-custom-domains-https/

like image 35
jivimberg Avatar answered Sep 24 '22 22:09

jivimberg