Contents |
The following article describes how to use the Netscape Proxy Autoconfiguration (PAC) file "proxy.pac" to auto configure Netscape browser clients.
application/x-ns-proxy-autoconfig .pac
AddType application/x-ns-proxy-autoconfig .pac
----------------cut-here-----------------
function FindProxyForURL(url, host)
{
/* No proxy needed for hosts on our localnet (192.168.1.0/24) */
if (isInNet(host, "192.168.1.0", "255.255.255.0"))
return "DIRECT";
else
/* For all other hosts, use cix.FooBar.com as proxy */
return "PROXY cix.FooBar.com:8888";
}
----------------cut-here-----------------
The only options you might to change is the localnet IP and the FQDN and port for your proxy.
Do the same on all clients that you want auto-configured. If you ever need to change any proxy related settings, just make the change in proxy.pac file.
Individual configuration of every client on your network is no longer necessary.
The above setup describes a very minimalistic use of PAC. You can do more things like:
See the "Navigator Proxy Auto-Config File Format" for more details http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
Please note that the Netscape proxy.pac will _not_ work with other browser clients like Internet Explorer and Opera.
http://developer.netscape.com/docs/manuals/proxy/adminux/autoconf.htm
http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html