I am new to web based apps.. my requirement is that a user accesses a URL that can be served by two servers- Primary and Secondary.
When Primary goes down,the requests of that URL should automatically be forwarded to the secondary server so now it serves in place of the Primary (and as soon as Primary resumes,it becomes the server for all incoming requests again). How can this be achieved?? Is there going to be a script that is going to serve the purpose for me?? and where is this script going to be run?
What approach shall i take.. please share some inputs..