I dont rewrite the all site of complex, i recommend you to visit the website.
See just a sample of a proxy pac file :
“For this example, we will assume that an organization uses company.net as their domain. They have three hosts (www, webmail and portal) in this domain and one subdomain (public.company.net) that are on the Internet. The rest of the domain is internal and shouldn’t be proxies.”
function FindProxyForURL(url, host) {
// First start with the exceptions that need to be proxied
if ((host == "www.company.net") ||
(host == "webmail.company.net") ||
(host == "portal.company.net") ||
(dnsDomainIs(host, ".public.company.net"))) {
return "PROXY proxy1.company.net:8000";
}
// Next, we want to send all traffic to company.net browser direct
if (dnsDomainIs(host, ".company.net")) {
return "DIRECT";
}
// Default return condition is the proxy, since it’s assumed that everything
// else is on the Internet.
return "PROXY proxy1.company.net:8000";
} // End of function