![](https://seccdn.libravatar.org/avatar/060d6a2b9dfa138e6b5f83a553353677.jpg?s=120&d=mm&r=g)
Moin, On Mit, 09 Aug 2000, Andreas Wahlert sent incredible lines: [...]
ich habe in meinem Netzwerk einen Squid 2.3 Stable 2 zu laufen. Geht gut ab! Meine Frage wäre jetzt, kann ich Squid überreden bei der Einstellung "Automatische Suche nach Proxyserver" im Webbrowser zu antworten? Kennt jemand einen Proxy unter Linux der das kann?
Du meinst etwas in der Art: <----------------------- begin cut ----------------------> //Replace each occurrence of company.com with your domain name //and if you have some kind of intranet system, make sure //that you put it's name in place of "internal" below. //We also assume that your cache is called "cache.company.com", and //that it runs on port 8080. Change it down at the bottom. //(C) Oskar Pearson and the Internet Solution (http://www.is.co.za) // modified by Thomas Bendler // 16:56:22 02.06.2000 rev. 0.1.1 function FindProxyForURL(url, host) { //If they have only specified a hostname, go directly. if (isPlainHostName(host)) return "DIRECT"; //These connect directly if the machine they are trying to //connect to starts with "intranet" - ie http://intranet //Connect directly if it is intranet.* //If you have another machine that you want them to //access directly, replace "internal*" with that //machine's name if (shExpMatch( host, "domino*")|| shExpMatch(host, "domino*")) return "DIRECT"; //Connect directly to our domains (NB for Important News) if (dnsDomainIs( host,"bendler.net")|| //If you have another domain that you wish to connect to //directly, put it in here dnsDomainIs(host,"lippert.net")) return "DIRECT"; //So the error message "no such host" will appear through the //normal Netscape box - less support queries :) if (!isResolvable(host)) return "DIRECT"; //We only cache http, ftp and gopher if (url.substring(0, 5) == "http:" || url.substring(0, 4) == "ftp:"|| url.substring(0, 7) == "gopher:") //Change the ":8080" to the port that your cache //runs on, and "cache.company.com" to the machine that //you run the cache on return "PROXY proxy.bendler.net:8080; DIRECT"; //We don't cache WAIS if (url.substring(0, 5) == "wais:") return "DIRECT"; else return "DIRECT"; } <------------------------ end cut -----------------------> Das ganze schimpft sich dann proxyconfig.pac, wird irgendwo in deinem HTML Baum abgelegt und z.B. bei Netscape unter Preferences als Pfad bei der automatischen Proxysuche angegeben. ... may the Tux be with you! =Thomas= -- Thomas Bendler \\:// ml@bendler-net.de Billwiese 22 (o -) http://www.bendler-net.de/ 21033 Hamburg ---ooO-(_)-Ooo--- tel.: 0 177 - 277 37 61 Germany Linux, enjoy the ride ...! --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com