今日升级为招商银行金卡用户 cvs服务器架设
Jul 31
作者: 肖建彬 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
网址:http://www.xiaojb.com/archives/it/proxy.shtml

整个脚本是由FindProxyForURL(url,host)来作为入口的,返回的有几种
1) DIRECT
2) PROXY 61.167.120.130:9000
3) SOCKS socks.domain.example:3128

脚本内的函数有
1) dnsDomainIs dnsDomainIs(host,”.mydomain.example”)

2) isInNet isInNet(host, “192.168.0.0″, “255.255.0.0″)
3) isPlainHostname not fqdn isPlainHostName(host)
4) myIpAddress isInNet(myIpAddress, “10.0.0.0″, “255.255.255.0″)
5) shExpMatch shExpMatch(host, “intra*”
6) url.substring url.substring(0, 5) == “http:”

apache中给proxy脚本定义文件类型
AddType application/x-ns-proxy-autoconfig .pac

squid-cache.org关于auto-config的原文
windtear大侠ipcn.pac
一个台湾哥们写的pac介绍的文章
Navigator Proxy Auto-Config File Format

Leave a Reply