Error 521 and 502 after chaging server



I recently purchased a new VPS and when I set new IP in Cloudflare DNS section my site goes down and I get first a 521 error and a second later “Bad Gateway”. This is driving me crazy I tried everything.

VPS webserver looks running smoothly so what could be the problem? Where should I look at?

I have root access and a CPanel/WHM account, in case

Thank you all in advance!


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