Redirect To Google AppEngine when my server down

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

Related posts

Leave a Reply

4 comments

  1. 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.

  2. 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?