Bad Gateway Error 502

my website is working properly before i change the nameserver to Cloudfare. i can see the DNS settings of cloudfare has made proxied my A records. If i disable the proxy in A record ,my website works fine. so please help me to get out of this problem.

Try Full (strict) SSL mode if you are using Flexible SSL currently.

Thanks for your reply but, Even if it is in full strict mode the error has been the same.

What is the website? Also, I would advise following the tips below
502/504 from your origin web server

Cloudflare returns an Cloudflare-branded HTTP 502 or 504 error when your origin web server responds with a standard HTTP 502 bad gateway or 504 gateway timeout error:


Contact your hosting provider to troubleshoot these common causes at your origin web server:

  • Ensure the origin server responds to requests for the hostname and domain within the visitor’s URL that generated the 502 or 504 error.
  • Investigate excessive server loads, crashes, or network failures.
  • Identify applications or services that timed out or were blocked.

When i disable cloudfare,still it is working fine.

Anyone can help me to sort out from Bad gateway error 502?

there is no effective support from cloudflare , so i am not happy with cloudflare. thank you.

Because still my website is not working if cloudflare proxy enabled

Maybe ask for a refund.

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