DEV Community

Discussion on: How do you host a website for free?

Collapse
 
williamhenderson profile image
William Henderson

GitHub Pages ftw

Collapse
 
pandaquests profile image
Panda Quests

I'm hosting my website for free on github pages, too. But it doesn't support https. Therefore most people would see an warning page.

Collapse
 
williamhenderson profile image
William Henderson

Not only does it support https, it forces it... Have you messed up the configuration?

Thread Thread
 
pandaquests profile image
Panda Quests

Ah, my bad. It is using https. But the certificate is not valid:

pandaquests.de

Thread Thread
 
williamhenderson profile image
William Henderson

That's because your certificate is provided by GitHub but your hostname doesn't match... I think you have to either switch to http or provide your own certificate

Thread Thread
 
pandaquests profile image
Panda Quests

Ok. I'll have a look how I can provide a certificate.

Thread Thread
 
artis3n profile image
Ari Kalfus

You can use a custom domain with GitHub Pages and get a valid certificate from Let's Encrypt automatically. You need to ensure you have a CNAME file in your repo and your DNS settings are set up correctly. Check out docs.github.com/en/github/working-...

Thread Thread
 
pandaquests profile image
Panda Quests

Hmm... I think I did that. But it still says my certificate is invalid

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

GitHub Pages is great, but eventually you come to realize that it's not. Netlify has so much more that GitHub Pages is lacking—plugins, redeploys, stop auto publishing, and a bunch of other useful features.