I am using 2 VPS servers. I do not have access to a physical router, nor physical access to either server. I don't know if a router solution is going to help me much unless there is a way I can configure them without having physical access? Not sure as I don't know much about "router switching" (not sure if that is what its called)
There is a way to do what I am trying to via Round Robin DNS. However this solution is not the best nor will it work for me in my specific case. Perhaps "load balancing" is something different and now what I am completely trying to do. It's all new to me.
My main objective is to allow users to select which server they want to log into.
If someone logs into server A, it will bring them to pages on server A, thus using server A's resources.
If someone logs into server B, it will bring them pages on server B, thus using server B's resources.
The real question is how do I make it if the domain name is the same for both A and B to tell the login script which server to go to?
Some kind of connection method? I normally would just tell the login script to go to main.php but since main.php is the same on both server A and server B how will it know which one to choose? example (site.com/main.php on server A and site.com/main.php on server B .. how will it know which one to choose because they address's are identical??)
This why I thought sub-domains might work. serverA.site.com/main.php will go to server A and serverb.site.com/main.php will go to server B.
Of course, your solution about using a router to determine which one to use would work perfect. Is there a way I can do this remotely? Should I contact my host?
Also, from what I know using the same domain on more than one server works fine. Anyone who knows DNS know how to do this? I plan to just add more name servers to the A record with different IPs.. that might work??
Maybe on server B i could do put serverb.site.com - IP address in the arecord and that will work okay? Not entirely sure because I haven't played with it
Thanks for the suggestion and any more ideas/help welcome!