[squid-users] Newbie Question: proxy.pac

From: Mack Lundy <malund@dont-contact.us>
Date: Fri, 26 Oct 2001 12:31:04 -0400

Users are reporting problems configuring their browsers (Netscape & IE)
for automatic proxy configuration. I inherited the proxy.pac and have
attempted to clean it up to try to resolve the problem. Below is what I
have put together from the user's guide. Since I can't give it a true
test at work, I'd appreciate someone telling me if I have made a
mistake. Have I left anything out.

Thanks

Mack

function FindProxyForURL(url, host)
{
if (isPlainHostName(host)) {
   return "DIRECT";
        }
if (dnsDomainIs(host, "iter.library.utoronto.ca")||
    dnsDomainIs(host, ".aps.org")||
    dnsDomainIs(host, ".umich.edu")||
    dnsDomainIs(host, ".collegesource.org")||
    dnsDomainIs(host, ".ed-phys.fr")||
    dnsDomainIs(host, ".wiley.com")||
    dnsDomainIs(host, ".nber.org")||
    dnsDomainIs(host, ".edrs.com")) {
    dnsDomainIs(host, "bugeye2.wm.edu"))||
    dnsDomainIs(host, "it.wm.edu"))
    return "Proxy proxy.wm.edu:8080; DIRECT";
    }
        return "DIRECT";
}

-----
Mack Lundy
Systems Librarian
College of William & Mary, Swem Library
voice: 757.221.3114
email: malund@wm.edu
Received on Fri Oct 26 2001 - 10:31:07 MDT

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