Not directly or robustly.

If your application know it was having trouble, say the PHP (or what every
language you use!) was running, but it was unable to connect to database to
fetch content. Then it could serve a redirect.

But in that case the php application could just serve the 'oops, we are
down' message directly.

However if the whole VPS was down - ie not serving traffic - then there is
nothing to serve the redirect. Visitors still get a dead end.

... so the answer then would be to put a proxy in front of your site, that
if vps was down, serve content from appengine.

... But that leads to another solution - make AppEngine your proxy! It
should be quite easily to implement. And if AppEngine gets no response from
your server, it can just serve the error message directly.

(You can even make the proxy caching - to save bandwidth on your VPS)


(there are alternative solutions, such as having an external monitoring
site, monitor if your VPS is healthly, and if not change the dns records -
such as moveing traffic to a server that serves a redirect to appengine. But
personally I dont beleive they are a good way,because dns often gets cached
in more places than expect. It can work if you maintain it right, but it can
get quite high maintenance)




On 21 January 2011 02:47, Ivan Kristianto <i...@ivankristianto.com> wrote:

> Hi All,
> i know this questions may 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.
>
> Best Regards
>
> Ivan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to