10.3: Use a proxy.pac file with Panther

Jan 19, '04 11:10:00AM

Contributed by: Gwyrrdin

After getting squid nicely up and running, I was thinking about how to re-configure the clients to advertise the newly installed proxy. I have read before about using a so-called proxy.pac file, and to my complete surprise, Panther supports the use of a proxy.pac out of the box. This option isn't avalaible in Jaguar.

After some googling I found this site with some good information. My proxy.pac looks as follows:


 function FindProxyForURL(url, host)
 {
   if (isPlainHostName(host) || dnsDomainIs(host, ".begeleidingentraining.nl"))
     return "DIRECT";
   else
     return "PROXY proxy.begeleidingentraining.nl:3128; DIRECT";
  }
Place the proxy.pac file in the root of your webserver. Go to System Preferences -> Network -> Proxies, and select "Automatic Proxy Configuration." Enter the URL to your proxy.pac, and there you go!

Comments (6)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040101095553265