Hi People,
In short, I am struggling with creating a proxy.pac file… All users are using a mixture of IE6, 7, and 8. This is what I have come up with:
function FindProxyForURL(url, host)
{
// Declare Variables
var proxy_1 = “PROXY proxy1.com:8080”;
var proxy_2 = “PROXY proxy2.com:8080”;
var proxy_no = “DIRECT”;
//Proxy Exceptions
if (shExpMatch(url, “http://*.site1.com/*”)) { return proxy_no; }
if (shExpMatch(url, “ftp://*.site2.com/*”)) { return proxy_no; }
// Determine which subnet – 1
if (isInNet(myIpAddress(), “10.20.*”, “255.255.255.0”))
{ return proxy_1; }
// Determine which subnet – 2
else if (isInNet(myIpAddress(), “10.25.*”, “255.255.255.0”))
{ return proxy_2; }
// Otherwise direct connection
else
{ return proxy_no; }
}
Can anyone shed some light on why this will not work or direct me where I can debug this?
Thanks in advance!