we have an apache cluster, so we switch every time when we click on an url the servername, e.g. www1., www2.
In the wp-login the script checks the servername and if it's a new one the table wp_options with the value "siteurl " will be changed.
since we removed this server name check it will work fine.
why do you have this check in the script. normaly a script won't be moved so much?