Hi,
I need help in making a auto proxy configuration file script (.pac) . I have a sample configuration as mention below but when i link it to my browser it doesn't work . I have configured in a way if any users want to access macxx.com, windowxx.com it should go through the proxy sever and every thing else should not use the proxy setting. Below are the sample configuration file :
function FindProxyForURL(url, host)
{
if ( shExpMatch ( url, "*.macxx.com*") ||
shExpMatch (url, "*.windowxx.com*") )
{
return "10.19.10.10:2234";
}
else
{
return "DIRECT";
}
}
I have saved this in a proxy.pac file and linked in Internet explorer , below are the setting :
Internet Explorer:
Tools > Internet Options > ‘Connections’ tab > LAN Settings > Ensure everything under ‘Proxy
server’ is unchecked > ‘Select Use automatic configuration script’ > Entered the location of the PAC
file.
As i had kept the file in local system, the location of the PAC file mention in the setting is : file://c:/proxy.pac
Please advise . Thanks in advance.
ASKER