1. 这是一个proxy.pac脚本.用于我的一个生产环境。通过特定用户的接入,加速访问!写过几次用的时候总不
  2. 记得放在哪儿了,在此记录备用。
  3. function FindProxyForURL(url, host) 
  4.     { 
  5.     if ( shExpMatch(url,"*.web1*.com/*") || shExpMatch(url,"*.web2*.com/*")  && !isResolvable(host) )  
  6.     return "PROXY d.d.d.d:8088;" + 
  7.            "PROXY b.b.b.b:8088;" + 
  8.            "PROXY c.c.c.c:8080;" +  
  9.            "PROXY a.a.a.a:8088"; 
  10.  
  11.     if ( shExpMatch(url,"*.web3*.com/*") || shExpMatch(url,"*.web4*.com/*") && !isResolvable(host))  
  12.     return "PROXY a.a.a.a:8088;" + 
  13.            "PROXY b.b.b.b:8088;" + 
  14.            "PROXY c.c.c.c:8080;" +  
  15.            "PROXY d.d.d.d:8088"; 
  16.  
  17.     if ( shExpMatch(url,"*.web5*.com/*") || shExpMatch(url,"*.web6*.com/*") && !isResolvable(host) )  
  18.     return "PROXY b.b.b.b:8088;" + 
  19.            "PROXY d.d.d.d:8088;" + 
  20.            "PROXY c.c.c.c:8080;" +  
  21.            "PROXY a.a.a.a:8088"; 
  22.  
  23.     if ( shExpMatch(url,"*.web7*.com/*") || shExpMatch(url,"*.web8*.com/*")  && !isResolvable(host))  
  24.     return "PROXY c.c.c.c:8080;" + 
  25.            "PROXY b.b.b.b:8088;" + 
  26.            "PROXY d.d.d.d:8088;" +  
  27.            "PROXY a.a.a.a:8088"; 
  28.      
  29.     if ( shExpMatch(url,"*.web9*.com/*") || shExpMatch(url,"*.a33*.com/*")  && !isResolvable(host))  
  30.     return "PROXY d.d.d.d:8088;" + 
  31.            "PROXY b.b.b.b:8088;" + 
  32.            "PROXY c.c.c.c:8080;" +  
  33.            "PROXY a.a.a.a:8088"; 
  34.      
  35.         if ( shExpMatch(url,"*.fbccccc.com/*") || shExpMatch(url,"*.foooo.com/*") && !isResolvable(host) )  
  36.         return "PROXY b.b.b.b:8088;"  
  37.         else 
  38.             return "DIRECT";