5 replies
by chrissaw
Hi Benjamin,
Here a sample of my own .pac file. May be it will help you to resolve your question.
First, I created a Pac directory under my WWWROOT directory on my IIS server.
Second, I create a new entry in my DHCP Scope Options as follow:
252 wpad Standard http://your IIS server IP adress/pac/yournamefile.pac
Your .pac file must contain something like the following:
function FindProxyForURL(url, host)
{
if ((isPlainHostName(host)
|| dnsDomainIs(host, ".your_domain_name.com"))
|| localHostOrDomainIs(host, "www.company.com"))
return "DIRECT";
else
return "PROXY 10.0.0.1:3128";
// return "DIRECT";
}
So, the only file you have under x:\inetpub\wwwroot\pac is your .pac file containing the function above.
Hope it will help you.
Christian
This discussion is closed to new replies.
Trending Security posts
Sort by Trending