Re: [squid-users] Can squid test whether a redirect target is up?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 22 Mar 2011 12:38:40 +1300

 On Mon, 21 Mar 2011 15:17:38 -0400, David Guertin wrote:
> Hello,
>
> One of our remote web sites has a habit of going offline frequently.
> I am trying to configure squid to act as a proxy for this site so
> that
> if the site is down, the browser gets redirected to an alternate page
> instead of getting a generic "server error" page.

 Okay.

>
> I have configured squid and squidGuard to handle redirects, but there
> doesn't seem to be any way to add any kind of conditional statements
> to the config, i.e. "if site A is up, redirect to site A, but if it's
> down, redirect to site B."
>
> Is there any way to do this? Is squid the correct tool for this?
> Would a different redirector that squidGuard be a better choice?

 Using a redirector for this is not a good choice. Redirectors only pass
 a URL to Squid to inform the client to try there. It is up to the
 redirector to test
Received on Mon Mar 21 2011 - 23:48:21 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 22 2011 - 12:00:02 MDT