Are you sure you are still experiencing the 522? The error itself is covered at Community Tip - Fixing Error 522: Connection timed out but, unless Github has temporary issues, I’d doubt that connection would time out.
It sounds like the Redirect example.com to www.example.com will do the trick, though I thought I had that taken care of with an A DNS record. Is this the best practice, to not have a valid certificate for the naked domain and then do this redirection?
But you can’t reproduce it? What happens if you go to nathanlazarus.com/nonsensepage? Since I changed things to “Full (strict)” I’ve gotten a 526 error instead of 522.
Thanks, and sorry for my lack of knowledge on the best practices here.
Ok, great, yeah, that makes sense. Could you point me towards some resources on configuring a proper certificate?
I generated a Cloudflare universal certificate for the hosts (*.nathanlazarus.com, nathanlazarus.com), and uploaded it to the root directory as “nathanlazarus.com.pem”, such that it’s available at www.nathanlazarus.com/nathanlazarus.com.pem. I don’t know much at all about the security/SSL stuff, so I’m not surprised it didn’t work!
I am afraid server configuration is beyond the scope of the forum here and better discussed at StackExchange or Reddit.
However, simply uploading won’t do it. You need to configure the webserver accordingly. Please consult your server manual or contact your host for that.
Your “www” record does have a valid certificate right now however, so if you implement the redirect I mentioned earlier you should be good. Just make sure you have configured Full Strict, as everything else is not secure.