Web Server Return Error 520


The web server is returning error 520 after setting up a subdomain in CPanel. I have done creating A records in both CPanel and Cloudflare DNS. Let me know if I missed any configuration.


Hello @joffrey_tornea,

Error 520 usually occurs when the origin server is returning an unexpected response to Cloudflare. To resolve this issue, please follow the steps below:

  1. Check your origin server logs for any errors or issues. This will help you identify if there’s a problem with your server configuration.
  2. Temporarily pause Cloudflare for your domain by going to the Overview tab in your Cloudflare dashboard and clicking on “Pause Cloudflare on Site.” This will help you determine if the issue is related to Cloudflare or your origin server.
  3. If the issue persists after pausing Cloudflare, it’s likely an issue with your origin server. In this case, you should reach out to your hosting provider for assistance.
  4. If the issue is resolved after pausing Cloudflare, check your SSL settings in the Cloudflare dashboard. Make sure the SSL mode is set to “Full (Strict)” if you have a valid SSL certificate installed on your origin server.
  5. Review your firewall settings in the Cloudflare dashboard to ensure that your origin server’s IP address isn’t blocked.

If you still face issues after trying these steps, please contact Cloudflare support by submitting a ticket through this link: https://dash.cloudflare.com/?to=/:account/support. Don’t forget to include the relevant details and any troubleshooting steps you’ve already taken.

Check also our community post here

Take Care!

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