Hi,
The following autoproxy configuration doesn't work
in Netscape 6.1 or Mozilla 0.9.4 ? It works in
Netscape 4.7.
Can you let me know why it doesn't work in Mozilla ?
Thanks,
Rajesh
------------------------------------------------------
Company name and internet addresses in the
following file has been modified for security
reasons.
-----------------------------------------------------
// Set various proxy paths
var da_proxy1 = "PROXY inetproxy2.mycompany.net";
var da_proxy2 = "PROXY inetproxy2.mycompany.net";
//var internet = da_proxy1 + "; " + da_proxy2;
var internet = "PROXY inetproxy2.mycompany.net";
var secure = "PROXY inetproxy2.mycompany.net";
var direct = "DIRECT";
var trusted_proxy = "PROXY inetproxy1.mycompany.net:80";
var old_trusted_proxy = "";
// Check for no connectivity to Delphi intranet
if (!(isResolvable("apollo.mycompany.com"))) {
alert ("You are not connected to the mycompany network.")
da_proxy1 = "DIRECT";
da_proxy2 = "DIRECT";
internet = da_proxy1 + ";" + da_proxy2;
secure = "DIRECT";
direct = "DIRECT";
}
function FindProxyForURL(url, host) {
// Go direct to Intranet-only domains or hosts without domain
name.
if (dnsDomainIs(host, ".mycomelect.com") ||
dnsDomainIs(host, ".mycompany.net") ||
dnsDomainIs(host, ".mycomp.com") ||
isPlainHostName(host)
)
return direct;
// Internet sites that have Intranet domain names (see below)
else if (
shExpMatch(host, "not.using.trusted")
)
return trusted_proxy;
// Internet sites that have Intranet domain names (see below)
else if (
shExpMatch(host, "www.mycompany.com") ||
shExpMatch(host, "www.shop.mycompany.com") ||
shExpMatch(host, "suppliers.mycompany.com") ||
shExpMatch(host, "netmeeting.public.mycompany.com") ||
shExpMatch(host, "go.mycompany.com") ||
shExpMatch(host, "www.go.mycompany.com") ||
shExpMatch(host, "www.mycorp.com") ||
shExpMatch(host, "media.mycorp.com") ||
dnsDomainIs(host, ".xweb.eds.com") ||
dnsDomainIs(host, ".ug.eds.com") ||
shExpMatch(host, "www.vto.eds.com") ||
shExpMatch(host, "130.143.1.15")
)
return internet;
// Intranet domains that have Internet hosts.
// This must come after the "return internet" section.
// ANX stuff is 123.123.11.*. NOTE do not use isInNet()!
else if (
dnsDomainIs(host, ".mycompany.com") ||
dnsDomainIs(host, ".mycorp.com") ||
dnsDomainIs(host, ".mycorpsupplier.com") ||
dnsDomainIs(host, ".mycorpsupplypower.com") ||
dnsDomainIs(host, ".mycorpeds.com") ||
dnsDomainIs(host, ".myeds.com") ||
shExpMatch(host, "130.143.11.*") ||
shExpMatch(host, "224.124.158.*") ||
shExpMatch(host, "128.516.164.153") ||
shExpMatch(host, "132.829.105.130") ||
shExpMatch(host, "132.516.172.151")||
shExpMatch(host, "www.clientview.net") ||
shExpMatch(host, "www.mycompanyenroll.com")
)
return direct;
// If the protocol is secure http or secure news, set secure proxy
else if (url.substring(0,6) == "https:" ||
url.substring(0,6) == "snews:")
return secure;
// All else is external
else
return internet;
} // end function FindProxyForURL
--
*****************************************************************
Rajesh Venkatsubramanian Rajesh Venkatasubramanian
ACAL, Dept of EECS 1929 Plymouth Rd, #3015
1301 Beal Ave, Room 2003 Ann Arbor, MI 48105
University of Michigan Ph: +1-734-769-7817
Ann Arbor, MI 48109-2122 mailto:[EMAIL PROTECTED]
Ph: +1-734-936-2828 http://www.eecs.umich.edu/~vrajesh/
*****************************************************************
"Linux does not solve all the problems. But we are working on it."
- Alan Cox