Re: [squid-users] proxy.pac

From: e <lij@dont-contact.us>
Date: Thu, 18 Oct 2001 09:30:49 +1000 (EST)

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
On Wed, 17 Oct 2001, Tommy Lindqvist wrote:

> Hi,
>
> Internet explorer is a funny beast when it comes to using proxy.pac
> in order to try to direct it.
>
> I have a similar problem, in which I have an open case with M$.
> ( I want Internet explorer to use a proxy for external access,
> and no proxy for internal access. )
>
> The background, and tests I did is in the attached ( small ) textfile.
>
> Hope this can help.
>
> Tommy
>
>
>
Received on Wed Oct 17 2001 - 17:30:59 MDT

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