I can connect to my Discourse via SSH but get can’t connect to server errors in browsers

Is the DNS correctly pointing to the IP of the server?

If you can SSH in, it never hurts to do a rebuild.