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!