Proxy Autoconfigfile

From: Gereon Ruetten <gently@dont-contact.us>
Date: Mon, 14 Jul 1997 19:13:57 +0200

I have a problem with the autoconfig file.

We tried to make a config file for the whole campus, the Browser has to
lookup if he is member
of "137.226.73.*" if not he should use the "cache.rwth-aachen.de", but if he
is member he should use
the "cache.baer.rwth-aachen.de" (local Proxy for a house with low bandwith)
if one of the proxies is
down the browser has to use the next proxy.
But this scriptfile doesn´t work. he allways want to connect the
cache.rwth-aachen.de even if the machine
is member of 137.226.73.*
What is wrong ?

Thanks and bye,
Gereon Ruetten

<---------------------------------------------------------------------------
------------------------->
//
// Automatic Proxy Configuration File
// Last update: Wed Jun 18 10:03:21 MET DST 1997
// Spezialbehandlung Baerenstrasse
// Update: Wed May 21 14:09:51 MESZ 1997
//
// Location:
// http://www.informatik.rwth-aachen.de/cgi-bin/proxy-autoconfig
//
// Documentation:
// http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
//
function FindProxyForURL(url,host)
{
if (url.length > 4000) {
return "DIRECT";
}
myhost=myIpAddress();
// Baerenstrasse soll immer ueber den eigenen Cache gehen!
if (isInNet(myhost,"137.226.73.0","255.255.255.0"))
return "PROXY cache.baer.rwth-aachen.de:8080;" +
"PROXY cache.rwth-aachen.de:8080;" +
"PROXY www-cache.informatik.uni-bonn.de:3128;" +
"DIRECT";
if (isPlainHostName(host) ||
dnsDomainIs(host,".rwth-aachen.de") ||
isInNet(host,"137.226.0.0","255.255.0.0") ||
isInNet(host,"134.130.0.0","255.255.0.0") ||
isInNet(host,"127.0.0.1","255.255.255.255") || // ... Hacker?
(host == "localhost") || // localhost
(url.indexOf("?") >= 0) || // Form o.ae.
shExpMatch(url, "http:*/cgi-bin/*") ||
shExpMatch(url, "http:*.cgi") || // meist POSTs
shExpMatch(url, "http:*/htbin/*") || // alte CERNs
shExpMatch(url, "ftp:*:*@*") // ftp m. Passwort
)
return "DIRECT";
if (shExpMatch(url,"wais:*"))
return "DIRECT";
return "PROXY cache.rwth-aachen.de:8080;" +
"PROXY www-cache.informatik.uni-bonn.de:3128;" +
"DIRECT";
}
Gruss,
                                Gereon

--
Lass dir kein x fuer ein u vormachen !!! Sei auf der Hxt !
Received on Mon Jul 14 1997 - 10:16:23 MDT

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