[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proxy.pac
On Sun, 11 Jan 1998, Erez Doron wrote:
> Hi
> can anyone point me to an example
> of a proxy auto config file (*.pac)
This one is one is used at Tel-Aviv University, I changed IP's and hosts
involved to SOMEHOST$ and xxx.yyy.www.zzz etc etc
This is how it looks like:
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
dnsDomainIs(host, ".ac.il"))
return "DIRECT";
else if (shExpMatch(host, "SOMEHOST1.somedomain1") ||
shExpMatch(host, "SOMEHOST2.somedomain2") ||
return "PROXY XXX.YYY.WWW.ZZZ";
else if (shExpMatch(myIpAddress(), "xxx.yyy.www.zzz")||
shExpMatch(myIpAddress(), "yyy.www.xxx.zzz")||
shExpMatch(myIpAddress(), "xxx.zzz.www.*"))
return "PROXY somehost.somedomain:8080; " +
"PROXY somehost2.somedomain:8080; " +
"PROXY XXX.YYY.WWW.ZZZ:8080; " +
else
return "PROXY somehost.somedomain:8080; " +
"PROXY somehost2.somedomain:8080; " +
"PROXY XXX.YYY.WWW.ZZZ:8080; " +
}
>
> regards
> Erez
>
>
>
+---------------------------------------------------------------+
| Ariel Biener |
| e-mail: ariel@post.tau.ac.il Work ph: 03-6406086 |
| fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
+---------------------------------------------------------------+