So what I am trying to get done is:
- Have
UserName/username.github.ioserved athttps://subdomain.domain.com - Have
Username/projectserved athttps://project.domain.com
I have done these things:
- Put a DNS record in cpanel:
subdomain CNAME username.github.io. - Put a CNAME file
subdomain.domain.comin UserName/username.github.io repo. - Put a CNAME file
project.domain.comin UserName/project repo.
Now number 1 works: https://subdomain.domain.com is reachable and serves the content correctly.
However 2 does not work: DNS check fails:
Your site's DNS settings are using a custom subdomain, project.domain.com, that's set up as an A record.
We recommend you change this to a CNAME record pointing at [YOUR USERNAME].github.io.
For more information, see Learn more (InvalidARecordError).
We recommend you change this to a CNAME record pointing to subdomain.domain.com.
Now if I follow the suggestion then I get UserName/project served at subdomain.domain.com/project correctly, but that is not what I want.
I followed this question, of which this one should be a duplicate... but I guess there is something different, or something I am missing.
How do I fix this ?