基于node-http-proxy的脚本:功能更新,现在支持把GFW屏蔽的URL作快速404失败返回处理;支持把墙外的CDN url映射为本地host
"usestrict";
//tosupportlet-ofsyntax;
varProxyPort=8888;
varhttp=require('http'),
net=require('net'),
url=require('url'),
httpProxy=require('http-proxy');//需要安装Node5.0,然后执行npminstallhttp-proxy--save