502 Bad Gateway after ip change

After changing the IP address of the server I started to receive error 502 Bad Gateway. What would be the reason?