Error 502 Bad gateway Host Error

I have a VPS on Contabo. I have a lot of website in there. When I add one of my sites into Cloudflare, I faced this problem. Error 502 Ray ID: xxxxxxxxxxxxxxxxxxx • 2019-09-19 03:51:42 UTC

Bad gateway

Host Error

How can I solve this?

Hi @ranojitkumar,

The 502/504 errors are caused by a problem connecting to an upstream server - meaning your server is trying to initiate a process and this fails to work as expected or times out. In most cases of 502 / 504 errors, back-end servers are not communicating correctly. When this happens, you will see color page with Cloudflare branding and the Error 502 Bad Gateway or Error 504 Gateway Timeout. Review this Community Tip for fixing 502 or 504 gateway errors.

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