Re: [squid-users] Proxy Automatic Configuration Script

From: Joel Jaeggli <joelja@dont-contact.us>
Date: Mon, 15 Apr 2002 15:23:41 -0700 (PDT)

I use this:

//simple UO autoconfig (joelja@darkwing.uoregon.edu) 01/02/2000
function FindProxyForURL (url,host)
{
        //local items don't get retrieved through proxy
        if (shExpMatch(host,"*.uoregon.edu"))
                return "DIRECT";
        //localhost items don't get retrieved through proxy
        if (isInNet(host, "127.0.0.1", "255.255.255.255"))
                return "DIRECT";
        // retrieve everything else first through proxy(162.23) then proxy2(162.33) then direct
        return "PROXY 128.223.162.23:3128; PROXY 128.223.162.33:3128; DIRECT";
}

On Mon, 15 Apr 2002, Lam, Eric wrote:

> Would someone refer me to a simple browser proxy configuration script where
> all surfing will go through my proxies, and if "proxy1" fails it attempts to
> use "proxy2". Basically a redudant proxy script. Thanks ahead.
>
> --Eric
>

-- 
-------------------------------------------------------------------------- 
Joel Jaeggli	      Academic User Services   joelja@darkwing.uoregon.edu    
--    PGP Key Fingerprint: 1DE9 8FCA 51FB 4195 B42A 9C32 A30D 121E      --
  In Dr. Johnson's famous dictionary patriotism is defined as the last
  resort of the scoundrel.  With all due respect to an enlightened but
  inferior lexicographer I beg to submit that it is the first.
	   	            -- Ambrose Bierce, "The Devil's Dictionary"
Received on Mon Apr 15 2002 - 16:22:43 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:34 MST