Attachment 'sample2.pac.txt'
Download 1 function FindProxyForURL(url,host)
2 {
3 // Hostname without domainname or host within our own domain?
4 // Try them directly:
5 // http://www.domain.com actually lives before the firewall, so
6 // make an exception:
7 if ((isPlainHostName(host)||dnsDomainIs( host,".domain.com")) &&
8 !localHostOrDomainIs(host, "www.domain.com"))
9 return "DIRECT";
10
11 // First try proxy1 then proxy2. One server mostly caches '.com'
12 // to make sure both servers are not
13 // caching the same data in the normal situation. The other
14 // server caches the other domains normally.
15 // If one of 'm is down the client will try the other server.
16 else if (shExpMatch(host, "*.com"))
17 return "PROXY proxy1.domain.com:8080; PROXY proxy2.domain.com:8081; DIRECT";
18 return "PROXY proxy2.domain.com:8081; PROXY proxy1.domain.com:8080; DIRECT";
19 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.