0
votes

I have two blogs hosted on Github Pages: travel and personal. The first should appear on http://alkamid.com/travel, the second on http://alkamid.com — and they do, but after pushing the travel CNAME with the same content as the personal one (just one line: alkamid.com), I got the following warning from Github:

The page build completed successfully, but returned the following warning:

CNAME already taken: alkamid.com

I didn't change anything in the settings of my domain provider.

What is the correct way of configuring CNAME for these two blogs?

1

1 Answers

1
votes

Remove CNAME from your /travel repository. You just need it in your username.github.io repository.

Edit : This is my point of view about CNAME on github pages (ghp)

The simplest ways to manage custom domain on ghp is to set a CNAME (pointing to example.com) on username.github.io and any project repository hosting a gh-pages branch can be naturally reached at example.com/repositoryName. This is my solution.

But you can always set another CNAME on a particular project repository, for a subdomain (sub1.example.com) or another domain (example.org). This just implies to set a custom DNS. And here it's your choice.