HTTP 502 is a bad gateway so your origin server isn't working.
Have you tried seeing if your server works by going directly to the IP? It could possibly be that your DNS is pointing the wrong place as well (hence why it's a bad gateway).
When troubleshooting most 5XX errors, the correct course of action is to first contact your hosting provider or site administrator to troubleshoot and …