Re: [squid-users] proxy.pac

From: Tommy Lindqvist <tommy.lindqvist@dont-contact.us>
Date: Thu, 18 Oct 2001 09:08:44 +0200

Thanks Li,

This nailed it. I cannot adequately describe my gratitude for solving this
problem that has annoyed me to no end.

Thanks,
Tommy Lindqvist

At 09:30 2001-10-18 +1000, e wrote:
>Hi Tommy,
>
>Try this:
>function FindProxyForURL(url, host)
>{
> // Force proxy for www host and www.space.se
> if( host=="www" || host=="www.space.se" )
> return "PROXY wwwgate:3128";
>
> // Proxy direct connections to your local hosts
> if ( isPlainHostName(host) ||
> dnsDomainIs(host, ".space.se") ||
> isInNet(host, "195.100.0.0", "255.255.0.0") )
> return "DIRECT";
>
> // any thing else should go through Proxy
> return "PROXY wwwgate:3128";
>
>}
>
>
>
>Jihong LI
>Systems Administrator
>Information Technology
>NSW Agriculture
>
>Tel 02 6391 3271
>Fax 02 6391 3290

--
Systems Manager      |\      _,,,---,,_      Saab Ericsson Space AB
Postmaster          /,`.-'`'    -.  ;-;;,_   tommy.lindqvist@space.se
                   |,4-  ) )-,_. ,\ (  `'-'  +46 (0)31 735 4391
***************   '---''(_/--'  `-'_)
Tommy Lindqvist
Received on Thu Oct 18 2001 - 01:09:33 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:49 MST