[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference gyro::internet_toolss

Title:Internet Tools
Notice:Report ALL NETSCAPE Problems directly to [email protected].rnet? Read note 448.L for beginner information.
Moderator:teco.mro.dec.com::tecotoo.mro.dec.com::mayer
Created:Fri Jun 25 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:4714
Total number of notes:40609

4590.0. "Proxy Autoconfiguration question" by CHEFS::dhcp19.olo.dec.com::hattos (I'm back - as a matter of fact) Fri Apr 04 1997 04:32

Hi,

A quick question about proxy autoconfiguration :Netscape and IE.

I have a customer wants to use 2 proxy servers. One of which is situated on 
his firewall and provides access to internal URL's. The others are situated 
internally, up to three possibly.

I'm sure that it is possible to configure the browsers to fetch external 
URL's from the firewall proxy and internal URL's from the internal proxies. 
Could someone please confirm that this is possible with proxy autoconfig, and 
perhaps give me a code snippet?

If I'm wrong, can you think of another way to achieve this?

Cheers,
Stuart
T.RTitleUserPersonal
Name
DateLines
4590.1olo.pac file for millicentWOTVAX::16.194.64.183::watsonOK, whats todays long term strategy?Fri Apr 04 1997 06:2172
Hi Stu - welcome back!


I'm not sure if this is exactly what you want, but I got it from 
http://millicent.pa.dec.com/millicent/pac/olo.pac

var local = "PROXY www-proxy.olo.dec.com:8080";
var zone = 3;
// don't edit below this line
var PaloAlto = "PROXY www-proxy.pa.dec.com:8080;"  +

		"PROXY www-proxy1.pa.dec.com:8080";
var EastCoast = "PROXY www-proxy.crl.dec.com:8080;" +
		"PROXY www-proxy.das-x.dec.com:8080";
var Colorado = "PROXY www-proxy.csc.cxo.dec.com:8080;" +
		"PROXY www-proxy.cxo.dec.com:8080";
var Europe = "PROXY www-proxy.vbe.dec.com:8080";
var NumFirewalls = 4;
var Australia = "PROXY www-proxy.cao.dec.com:8080" +
		"PROXY www-proxy.stl.dec.com:8080;" +
		"PROXY www-proxy.sno.dec.com:8080;" +
		"PROXY www-proxy.sna.dec.com:8080;" +
		"PROXY www-proxy.shl.dec.com:8080;" +
		"PROXY www-proxy.cao.dec.com:8080;" +
		"PROXY www-proxy.meo.dec.com:8080;" +
		"PROXY soppy.sop.dec.com:8080";


var Japan = "PROXY www-proxy.dec-j.co.jp:8080";

function initZones() {

	this[0] = PaloAlto;

	this[1] = EastCoast;
	this[2] = Colorado;
	this[3] = Europe;
	this[4] = Australia;
	this[5] = Japan;
        this.length = 6;
}
var zones = new initZones();

function LocalProxy() {

	return local + ";" + zones[zone];
}
function FirewallProxy() {
	var res = zones[0];
	var i;
	for (i = 1; i < NumFirewalls; i++)
		res = res + ";" + zones[i];
	return res;
}
function StdFindProxyForURL(url, host)
    {
        if (isPlainHostName(host) || host == "127.0.0.1" ||
             (dnsDomainIs(host, ".dec.com") && 
              !dnsDomainIs(host, "-x.dec.com")))
            return "DIRECT";
        else
            return LocalProxy() + ";" + FirewallProxy();
    }
function FindProxyForURL(url, host) {
	if (shExpMatch(url, "http://srcpc128.pa.dec.com:[123]18?/*")) {
		return "PROXY millicent.pa.dec.com:1180";
	} else if (shExpMatch(url, "http://*:[123]18?/*")) {
		return "PROXY " + host +":1180";
	} else
		return StdFindProxyForURL(url, host);
}

4590.2CHEFS::dhcp19.olo.dec.com::hattosI&#039;m back - as a matter of factFri Apr 04 1997 07:475
Perfect Rob,

Thanks!!

Stu