Hi All
i know this questions sound stupid.
But i wondering if there is a way to redirect my website to google appengine when the server down.
This is my scenario:
I’m using Google AppEngine to host my static files, and i own a blog which is host on a VPS. But sometimes the VPS down for more than 6 hours without notice.
So i come with this idea, how about if i host the “down for maintenance page” on appengine, and when my server is down, it will redirect to something like this: maintenance.somedomain.com which is host on appengine. So my visitors know what is going on.
If any of you know how to do this, please help me.
I really appreciate all your time and effort.
Thanks
Ivan
Some DNS providers are offering this kind of failover services. One example is zoneedit http://www.zoneedit.com/failover.html but there are probably plenty of others ase well.
The bigger issue is a VPS being down for a long time, sounds like you need a new host. Load balancing is what you need to Google for this idea, though.
You can’t do this through code since the code to do the redirect is part of the unreachable site. You would need a load balancer, proxy or some other network level redirector that would be able to detect the server state independent of your code.
You could do this with DNS: Have your www subdomain CNAMEd to your server normally, and change that (manually or via an automated process running somewhere other than your server) to point to ghs.google.com when you want to send traffic to App Engine. Make sure you have Google Apps configured to serve your domain via your App Engine app.
I’m not sure why you’d want to do this, though – why not just host the content on App Engine full time?