[KLUG Members] Proxy Auto-Config File

Robert Walk members@kalamazoolinux.org
Wed, 8 Aug 2001 09:53:20 -0400


Has anyone had success using a proxy auto-config file in Netscape or IE?  I
am using Squid as my proxy on a Red Hat 7.1 machine and have been trying to
use an auto-config file to no avail.  I followed the directions from
Netscape's web site on how to implement the config file.  The browser seems
to parse the file but then it appears that the browser goes directly to the
web site instead of using the proxy.  I "assume" this because no entry shows
up in the access.log for Squid.

The steps I have take thus far:

1)  Made auto-config file called proxy.pac
2)  In httpd.conf added line
        AddType application/x-ns-proxy-autoconfig    .pac
3)  Set auto-config file option in both IE and Netscape pointing to the
proxy.pac file

Here is the java script used in the proxy.pac file:

function FindProxyForURL(url, host) {
 // Connect directly to our domains
 if (dnsDomaineIs(host,"mydomain"))
  return DIRECT;
 else
     return "PROXY myproxyserver:8080";
}


Any help would be greatly appreciated!

Rob Walk