Also, using host -t A command with my website shows that the IP address of my website is 104.27.178.224 and 104.27.179.224 (A records)
I have changed the DNS setting on my registar domain settings (Dynadot) do I have to delete the nameservers and do everything as well with my VPS (Digital Ocean).
PS - I contacted both, and the support team didn’t know what to do. DO told me that my A record isn’t registered. And Dynadot told me that my nameserver were configured to work with Cloudflare.
Because they are incompetent? I have no idea. A 522 is described in the linked article and also which steps you should take to fix it. Also you need to check the steps I already outlined.
Do you feel comfortable to reveal your server IP address here?
Hmm, your server is responding on both HTTP and HTTPS and appears to be properly configured.
Are you sure your DNS records are in order? Can you post a screenshot? What about the SSL mode? Which one did you choose? Though the latter shouldnt make much of a difference.
You might have to submit a support ticket with Cloudflare.
The certificate on your server is all right and should stay that way. You could even switch to Full strict instead of Full and it would be more secure, but that would not fix the issue at hand.
Ok, now I feel like an idiot hahahahahahahahahahhaha. It works! Thank you!
Can I know what was actually the problem? It was working well 2 days ago and then suddenly stopped yesterday. So, I didn’t even thought than that could be the solution.
The issue was that you had three IP addresses and Cloudflare proxied that in a round-robin way to these addresses. Some requests went to your actual address, but two out of three to the other two.