Re: What if Squid goes down?

From: Dancer <>
Date: Wed, 10 Dec 1997 01:50:50 +1000

Here's one for you...Make up something to return this:

Content-Type: application/x-ns-proxy-autoconfig

function FindProxyForURL(url, host)
    return "PROXY; DIRECT";

This script will tell both Netscape and MSIE (the newer ones, anyway) to
contact '' for all requests, and to run direct to the
target site if it cannot be contacted for some reason. If the connect fails,
and the browser starts connecting directly, it will try periodically to
obtain a successful connection to the proxy server, and return to using it.

You can list multiples, as well. I have a second box set up with a minimal
cache (a measly 10MB) in case the first one is down or in maintenance (since
drawing from our provider's proxy is half the byte-cost of going direct)..So:

return "PROXY;;; DIRECT";

is also possible. You can list about as many as you like, but MSIE will hate
you after four or five.


Chuck Pitre wrote:

> Hi, I work for an ISP and we are are about to setup SQUID as our PROXY
> server. Now the proxy is fairly important for web surfing; if it
> goes down, web surfing as a whole goes down unless users know how to
> change their web settings to get out of proxy mode (not likely).
> This is where I get stuck... If SQUID goes down, how do I notify 4 000 +
> browsers that are on-line using the proxy, not to use it :) I have heard
> of people using Jscripts... mind you I have never gotten an example of
> one, so I'm not sure exactly how that works....
> What are other poeple out there doing to avoid this kind of problem.
> Chuck Pitre
> ViaNet Internet Solutions Technical Consultant
> 128 Larch Street ph: 675-0400
> P3E 5J8 fax: 675-0404
> >--------------------------------------------------<
> Windows95: <win-doz-nin-te-fiv> n. 32 bit extensions
> and a graphical shell for a 16 bit patch to an 8
> bit operating system originally coded for a 4 bit
> microprocessor, written by a 2 bit company, that
> can't stand 1 bit of competition.

Note to evil sorcerers and mad scientists: don't ever, ever summon powerful
demons or rip holes in the fabric of space and time. It's never a good idea.
ICQ UIN: 3225440
Received on Tue Dec 09 1997 - 08:06:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:53 MST