522 Error When Accessing Custom Hostname, but Direct CNAME Access Works

What is the name of the domain?

mgwiki meowcat285 com, www moonglasses wiki

What is the error number?

522

What is the error message?

Connection timed out

What is the issue you’re encountering

I’m trying to setup a custom hostname, but when I attempt to access the custom hostname I get a 522 error, but if I access the domain that the CNAME is pointing to (which is mgwiki meowcat285 com), I’m able to access it (well at least the origin server is able to reply, it then sends a 308 to www moonglasses wiki).

What steps have you taken to resolve the issue?

I’ve tried changing the SSL mode setting in case it was some weird issue with the origin certificate not having www moonglasses wiki, but that doesnt seem to have fixed it. I’m not sure what else to try

What is the current SSL/TLS setting?

Flexible

Screenshot of the error

So I’ve tried a few things, and now cloudflare is just doing an infinite 308 redirect on both domains. I can confirm by both inspecting my origins logs and doing a packet capture that these redirects are not being generated by the origin

I’ve created a support ticket for this as well: #01349357

Which SSL mode are you using on Cloudflare?

I thought I had it set to full, but turns out that I had a rule that changed it to flexible. However I’m still having issues, I’m now getting a SSL handshake failed, but that may be due to how I have my web server setup. I’m gonna try changing something, I’ll let you know if it works

Alright, so I believe I’ve resolved this issue, I’m not entirely sure how I fixed the 522 error, but I fixed the SSL Handshake Failed by just setting my web server to allow http for that domain and re-enabling the rule that changes that domain to flexible.

That means the connection to your server is now not encrypted.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.