And also, it makes very little sense to allow changing the Server Name in web-interface (not setup) if that breaks the application.
Either disable changing the Server Name in the web application OR ensure that it properly re-writes the database everywhere.
As it is now, a simple change in the web configuration breaks the ability to login, and re-running set-up will NOT fix it.