Re: no proxy for

From: Alfonso Correas Serrat <>
Date: Sat, 14 Jun 1997 15:50:09 +0200

Mervyn Jack wrote:
> I've noticed that even though I have local domain , squid still
> get's the requested file and caches it. Squid doesn't actually tell the
> browser to go get the file directly, which is what is really needed to
> save processor and disk usage.
> I can see circumstances where you'd want it to work the way it does, like
> have a remote cache on your own network, so an extra directive is what's
> needed.

Then you need a proxy.pac file to configure your domain browsers
correctly. The file should be like this:

---- begin proxy.pac ----

// Automatic Proxy Configuration File
// Last update: 19970505
// Location: http://wwwserver/proxy.pac

function FindProxyForURL(url, host)
    if (isPlainHostName(host))
                return "DIRECT";
    else if (dnsDomainIs(host, "mydomain"))
                return "DIRECT";
    else if (dnsDomainIs(host, "localhost"))
                return "DIRECT";
    else if (dnsDomainIs(host, "mydomain") ||
             isInNet(host, "", "") ||
             isInNet(host, "myipdomain", ""))
                return "DIRECT";
        return "PROXY proxyserver:port";

---- end proxy.pac ----

If you want more info about this you can read:


You must need to modify your web server too to handle this file correcly
(MIME type:application/x-ns-proxy-autoconfig pac).

Un saludo.
        Alfonso Correas

 -- Comm Networks
 -- Tel: +34-1-714-00-50
 -- Fax: +34-1-714-00-51 / 34-1-352-31-34
Received on Sat Jun 14 1997 - 06:56:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:31 MST