Hi everyone,
I'm trying to host my hugo website on github with the custom subdomain https://www.priteshusadadiya.com results in
Your connection is not private
When i remove https from url then it results in a website without bootstrap styling.
I followed github's troubleshooting guide but no luck.
Here is DNS A records.
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
I have also added one CNAME record
www CNAME priteshusadadiya.com
I have also tried removing and re-adding my custom domain to the repository, still no luck.
Repo : https://github.com/priteshusadadiya/priteshusadadiya.github.io
Tried searching for solution on stackoverflow and github issues but coudn't find any. Can anyone please help me debug this ?
Thanks,
Pritesh
Update
Finally figured it out what was wrong with my DNS Configuration ?
The problem was that i had created a sub-domain WWW
which was pointing to the apex (Main) domain priteshusadadiya.com
CNAME record
www CNAME priteshusadadiya.com
All i had to do is make it point to the priteshusadadiya.github.io
CNAME record
www CNAME priteshusadadiya.github.io
and it worked. π
Top comments (7)
Not sure about your issue but on my side under the CNAME (in my domain provider config) i have :
And i remember that it took around a day for Github to generate the https certificate.
True. It just takes some time. For me it took surprisingly 3-4 days. mrprofessor.io
That seems like the general rule for githhub pages. Error that i was receiving has been changed.
At first the error was "not in compliance with custom domain format" i was not able Enforce HTTPS
Now message has changed to "Please allow 24 hours for this process to complete."
I've been banging my head on this for a while now. Finally found this thread makes me believe I may just need to wait.
I know the thread is okd, just hoping you can confirm for me.
GitHub is setup with custom domain.
Namecheap I have configured with a records to the 4 ips.
GitHub works with https but I'm getting githubs cert from digicert and not one for my site. Are you saying I just need to wait for the cert to generate?
Hi! @keric28
Normally it takes about 24 hours for github to generate certificate for the given domain.
However, you might also want to check for your domains record. As in my case i had created sub domain
WWW
and pointed to the apex (main) domain. if you are doing something similar then make sure to point it to your *.github.ioYep, had checked that, thanks.
Time heals all wounds. And apparently GitHub pages cert errors. It's working :)
thanks for the input @xelaflash