GitHub Pages with Custom Domain using another Domain Provider
When I was trying to configure a custom domain for my blog on GitHub I got stuck while setting it up in the Github Pages configuration. The creation of SSL certificates within Github displayed a progress that never finished, no error message was show. Finally I found a solution which is not straight forward and includes additional steps on the domain provider side. The needed configuration may be specific for strato (www.strato.de) but may vary/apply to other domain providers as well.
We have a two step process. The fist step is the (1) configuration on GitHub and in the second step you need to setup the (2) configuration on the Domain Provider site, in my case Strato.
1. Configuration on GitHub
Go to the main page of your GitHub Repository Project --> Settings --> Pages
and enter your custom domain (e.g. example.com) and save this.
This setting alone will lead to the never ending progress bar. You need to add a configuration on the domain provider side as well to make it work!
2. Configuration on Strato
2a. Domain configuration
- Configure the A-Record for your domain and add one of these IPs (IPv4).
- Configure the AAAA-Record for your domain and add one of these IPs (IPv6).
This IPs are listed in the Github documentation, see links below.
2b. Sub-Domain configuration
- Add
www.
subdomain for your domain. - Configure the A-Record and add an IP for the subdomain as for the domain.
- Configure the AAAA-Record and add an IP for the subdomain as for the domain.
Adding the
www.
subdomain with an A-Record IP will do the trick here!
Links
Links that helped me finding this solution.