Github Pages Custom Domain

 Github Pages supports using a custom domain for your hosted site. Custom domains allow you to serve your site from a domain other than the default at github.io. After registering a domain name, follow these steps to complete the configuration.

Configuration

You should first secure a domain name by registering with a domain name authority. There are several available including: Amazon AWS Route53, Google Domains and GoDaddy.

Step 1

Before configuring your domain with your DNS provider, make sure to add your custom domain name to Github Pages. It will generate a DNS error initially until you set up the CNAME record in step 2.

Github

This action will also create a CNAME file in the root of your repository. Leave this file here, its how Github Pages identifies and routes your website properly.

Github

Step 2

Using your DNS provider’s website, set up a CNAME record. This image below is from AWS Route53. Fill in each marked area.

Github

Complete

That’s it. In just a few minutes you’ll be able to start using your custom domain.

Comments

Popular posts from this blog

Max Upload File Size in Spring Framework

Use Java Enums with JPA

Spring Security part 3 - OidcUser