Ask Your Question

Revision history [back]

Here are the steps to configure Github Pages with an apex domain that is currently using an A record for locally hosted software:

  1. Go to the repository settings page on Github and scroll down to the "Github Pages" section. Select the branch you want to use for your Github Pages site.

  2. Click on the "Custom domain" button and enter your domain name (e.g. yourdomain.com) in the text field.

  3. Github will provide you with an IP address that you need to use to create an A record for your domain with your DNS provider. Copy this IP address.

  4. Log in to your DNS provider's website and navigate to the DNS settings for your domain.

  5. Create a new A record with the following information:

  • Type: A
  • Name: leave blank (this will make it an apex domain A record)
  • Value: paste the IP address provided by Github
  • TTL: leave at default
  1. Save the A record and wait for it to propagate (this can take up to 24 hours).

  2. Once the A record has propagated, go back to the Github Pages settings and click on the "Enforce HTTPS" button. This will make sure your site is secure and prevent any security warnings from browsers.

Your Github Pages site should now be accessible at your apex domain!