On Fri, 26 Nov 2004 00:11:14 -0800 (PST), mike hoy
<
michael_hoy_636@yahoo.com> wrote:
> I'm wondering if there is such a thing as a javascript
> that can redirect to one site or another depending on
> whether the default one is actually working.
>
> example
>
> www.domain.com --> redirector
>
> redirector tests to see if site1 is up if it is
> then --> site 1
> else --> site 2 (backup site)
Yes, you can have a system that proxies on behalf of others. Of
course, now that system has become the weak link. This could be done
with a script that checks if
www.domain.com is available and then uses
iptables DNAT/SNAT to transparently forward traffic to whichever host
is up.
It's too bad DNS doesn't have the same failover functionality for A
records as it does for MX records.
Another option is to use a program that monitors your web server from
an external location. If the program detects that the main host is
down then it would update the A record in DNS (with a small TTL value)
to point to a different host.
An interesting idea might be to write a Firefox extension that would
be a bookmark for your website. When clicked, it would then do a
quick check for the availability of your site and change the URL, if
necessary, that is passed to Firefox.
~M
--
Get Firefox!
http://www.mozilla.org/products/firefox/
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss