Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 11 of 27

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

Is there any news on this topic? Or at least a confirmation that one day github will protect "example.com" and "www.example.com" via ssl?

Community Manager
Message 12 of 27

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

Hi @adrai,

 

At this point, there is no news on this front. Keep an eye on the GitHub Changelog to be notified of new features.

 

Thanks!

Ground Controller Lvl 2
Message 13 of 27

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

I'm also a little disapointed this is not supported properly. 

Ground Controller Lvl 2
Message 14 of 27

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

I will be a +1 on that request.

Just bought a .dev domain and was planning on keep it on github as a cv page, but since it needs an SSL cert (.dev rules) now I can't access it from the www subdomain. Not that I actively use it or share the url with it, but it's good to have the option. Right now the visitor will receive a cert error.

I understand not generating * certs to avoid abuse, but a www is pretty default and should be generated together with the apex domain when the repository is configured to a apex, since it's the same thing.

Ground Controller Lvl 1
Message 15 of 27

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

Not a real solution, but using Google Domains for my .dev domain I created a "Synthetic Record" subdomain forward to send www to the apex domain as a temporary redirect, preserving the path and enabling SSL. At first it barked that it wouldn't work because the certificate didn't exist yet, but within a short time it worked.

 

Again inelegant, but at least prevents scary browser security messages.

Copilot Lvl 2
Message 16 of 27

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

please allow both "www.mydomain.org" and "mydomain.org"

 

The work-around is to set first "mydomain.org" and then after the certificate is issued, change it to "www.mydomain.org" in this way they will both work.

But they will not be both renewed.

Just fix this!

 

Ground Controller Lvl 2
Message 17 of 27

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

Any other update?

Ground Controller Lvl 2
Message 18 of 27

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

Thank you for all the amazing work at GitHub!

 

We still need this feature badly :)

Ground Controller Lvl 2
Message 19 of 27

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

Until this gets implemented, you can use Cloudflare to serve certificates for your other subdomains, which I write about here: https://www.linuxguideandhints.com/fedora/git.html#setting-up-cloudflare-and-github-pages In the example I used, you would have a CNAME for the www subdomain that points to the FQDN (example.com, or your-username.github.io) with DNS/HTTP Proxy enabled. For the rest of the A records, set it to DNS only. Finally, create two Cloudflare page rules: always use HTTPS and 301 redirect from no-www to www. The example also assumes that you use "www.example.com" as your Github custom domain. Once you set these settings up, you may need to remove and re-add your custom domain so that Github can see the new DNS settings. If you did everything correctly, verify via curl that you see a Github-issued certificate for "example.com" and a Cloudflare-issued certificate for "www.example.com"
Ground Controller Lvl 1
Message 20 of 27

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

I'm like 90% of the way there. I have http://example.com and https://example and http://www.example.com all redirecting and loading properly with CloudFlare + GitHub Pages. But I cannot get https://www.example.com to redirect, I still get an `SSL_ERROR_BAD_CERT_DOMAIN`. My setup is: CNAME (flattened) example.com user.github.io CNAME www.example.com example.com GitHub Pages Enforce HTTPS is off Clearly www.example.com is redirecting to example.com which then redirects to https; but a direct https connection to www does not work. Has anyone gotten this to work? I might just ditch GitHub pages and host some other way instead, but I really wanted to teardown my (pointless) VM.