Discussion Locked

how do i create a .pac file

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
im having problems setting up CacheFlow

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.