I put the .pac file on the workstations, and update it via login script. This allows me to do things like:
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "10.10.14.0", "255.255.255.0"))
return "PROXY 10.10.10.10:3128";
return "DIRECT";
}
which allows laptops to go home and work correctly, without a proxy server, on their broadband connection.
-GS
-----Original Message-----
From: Duane Wessels [mailto:wessels@squid-cache.org]
Sent: Thursday, December 11, 2003 12:35 AM
To: Renato Kalugdan
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] .pac file/newbie guide request here
On Wed, 10 Dec 2003, Renato Kalugdan wrote:
> Hello All,
>
>
> I've just implemented Squid as a Proxy Server on a Lab setup at work.
>
> So far so good.
>
> My question pertains to .pac files
>
> Is there a guide that will allow me to comprehend this more thoroughly?
>
>
> Where would I put such a file? On the Squid Server or on a Web Server?
You would put this file on a Web server. Furthermore you need to make sure
that the server returns the correct content type for the URL. You
can do it in apache like this:
AddType application/x-ns-proxy-autoconfig .pac
Duane W.
This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.
Received on Thu Dec 11 2003 - 09:11:34 MST
This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:10 MST