Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 21 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

I think I've managed to make this work by accident.

 

We had:

example.com in the github pages settings.

@ on example.com domain pointing to github web servers

www CNAME @

 

Status was

http:\\example.com - works

https:\\example.com - works, cert good

http:\\www.example.com - works

https:\\www.example.com - cert error

 

For an experiment, I went into the github pages settings and set the config to be www.example.com.

My experiment didn't work, so I flipped it back.

 

But now https:\\www.example.com works, and https:\\example.com does too.  SSLLabs is happy with both certificates (which are from Let's Encrypt).

 

It may be that flipping the setting to www caused a new certificate to be generated.  Time will tell whether this cert gets renewed at its 3 month expiry time, or whether github forgets about it.  Anyway, it seems to work for now.

 

Ground Controller Lvl 1
Message 22 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

Work, thanks!
Lets see again in 3 months otherwise I have to do a toogle again :)

Copilot Lvl 2
Message 23 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

Same situation:

"example.com" in the github pages settings.
"Enforce HTTPS" in the github pages settings.

 

http:\\example.com - works
https:\\example.com - works, cert good
http:\\www.example.com - works
https:\\www.example.com - cert error

I tried the workaround described by tmarkettos
Does not work in my case.
May be I did something wrong?
Entered "example.com" in the github pages settings. Waited a bit. Changed it back to example.com
tmarkettos -- how long should I wait?

Anyway, Github team, pls fix it, it is clearly a bug. 

Copilot Lvl 3
Message 24 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

Any update on this? Having users meet Chrome's "Your connection is not private" screen when they incude/exclude the www subdomain is a bit of a massive problem.

Ground Controller Lvl 1
Message 25 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

I'd also like to know if there's any work being done to solve this. 

Copilot Lvl 2
Message 26 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

I have the same issue, any news?

Ground Controller Lvl 1
Message 27 of 27

Re: Does GitHub Pages Support HTTPS for www and @ subdomains?

I'm just trying out github pages and have the same issue.

Maybe it's best to just create separate repositories (github pages) with the same contents for www.example.com and example.com? I would just setup A records for both @ and www?


From https://help.github.com/en/articles/setting-up-an-apex-domain-and-www-subdomain:
"You must configure www subdomain and root domain redirects with your domain registrar."

What does that mean?

 

And this doc states that it's better to use www:
https://help.github.com/en/articles/about-supported-custom-domains#www-subdomains

 

So it's better to redirect example.com to www.example.com? Though github.com doesn't do this!