RE: [squid-users] IE auto config how to

From: Merton Campbell Crockett <mcc@dont-contact.us>
Date: Tue, 29 Jul 2003 09:45:26 -0700 (PDT)

On Tue, 29 Jul 2003, JOHNSON DAVID R wrote:

> Can someone provide me a brief how-to as to how to (lol) setup a config file
> on an IIS and Apache web server for dispersal to IE browsers.

Here is a very simple browser configuration file. Its basic function is
to have the browser access the URL directly if the URL references the
system on which the browser is running or is in the same /24 network as
the system running the browser. For all other URL, the browser is to use
the Squid proxy running on 192.168.200.1.

        function FindProxyForURL(url, host)
            {
            if (dnsResolve(host) == myIpAddress())
                {
                return "DIRECT";
                }
            if (isInNet(host, "127.0.0.0", "255.0.0.0"))
                {
                return "DIRECT";
                }
            if (isInNet(host, myIpAddress(), "255.255.255.0"))
                {
                return "DIRECT";
                }
            else
                {
                return "PROXY 192.168.200.1:3128";
                }
            }

Place this file in the DocumentRoot of your IIS or Apache server with the
name proxy.pac and wpad.dat. I use Apache on a Unix system and configure
wpad.dat as a symbolic link to proxy.pac.

Create a CNAME entry in your DNS that maps the name WPAD to the host name
of your IIS or Apache server.

        WPAD IN CNAME WWW.MYDOMAIN.COM.

In Internet Explorer, check the Web Proxy Automatic Detection box. When
IE starts, it will attempt to retrieve the following URL.

        http://WPAD/wpad.dat

For Netscape/Mozilla, you need to check the Use Automatic Configuration
File and specify the following URL in the text box.

        http://WPAD.MYDOMAIN.COM/proxy.pac

You can use this same approach for IE and specify the same URL string.

Merton Campbell Crockett

-- 
BEGIN:				vcard
VERSION:			3.0
FN:				Merton Campbell Crockett
ORG:				General Dynamics Advanced Information Systems;
				Intelligence and Exploitation Systems
N:				Crockett;Merton;Campbell
EMAIL;TYPE=internet:		mcc@CATO.GD-AIS.COM
TEL;TYPE=work,voice,msg,pref:	+1(805)497-5045
TEL;TYPE=work,fax:		+1(805)497-5050
TEL;TYPE=cell,voice,msg:	+1(805)377-6762
END:				vcard
Received on Tue Jul 29 2003 - 10:46:09 MDT

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