Hi,
> So far I have the following in a file called proxy.pac. It doesn't disable
> the cache for local browsing.
>
> function FindProxyForURL(url, host)
> {
> return "PROXY 192.168.2.33:3128; DIRECT";
> }
>
> I'd like to disable the cache for all hosts from 192.168.2.0 - 192.168.2.40.
> My squid server is on 192.168.2.33.
I suspect that the following will work for you (I'm guessing that you're
on a /24 network, if not, you'll have to adjust the netmask):
function FindProxyForURL(url, host)
{
if (isInNet(host, "192.168.2.0", "255.255.255.0"))
{
return "DIRECT";
}
else
{
return "PROXY 192.168.2.33:3128";
}
}
> Can somebody enlighten me or refer me to a decent web page?
Try http://developer.netscape.com/docs/manuals/proxy/adminux/autoconf.htm
HTH,
Neil.
-- Neil Hillard hillardn@whl.co.uk Westland Helicopters Ltd. http://www.whl.co.uk/ Disclaimer: This message does not necessarily reflect the views of Westland Helicopters Ltd.Received on Thu Apr 24 2003 - 06:43:54 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:24 MST