There is some experimental support for fallback routes, invoked by
using protocols named 'http2' or 'http3' instead of just 'http', but
it's not very well tested at the moment. Give it a try and let us
know if it works for you!
--
Bjarni R. Einarsson
Founder, lead developer of PageKite.
Make localhost servers visible to the world: https://pagekite.net/
Ah, ok. I think what you are looking for then is the --errorurl=
parameter. It allows you to specify the URL for a web page to serve
when the requested back-end is unavailable. If you end the URL with a
? character (question mark) then PageKite will append some arguments
explaining why the connection failed which the website can use to
customize the displayed error.
Note that this is NOT a redirect, as we did not want to break the
address in the URL bar of the user's browser. Instead, the URL is
displayed inside a frame, and the frame is returned with an HTTP code
of 500 to ensure that automated scripts, search engines and such do
not get the wrong idea and think the page has disappeared for good.
Out of curiosity, can you tell us what you are working on building?
We are always quite curious to know how PageKite is being used. :-)
I think we actually had a conversation about this on IRC - did you
sort this out?
Usually this means you have more than one pagekite running with the
same account/kite details.