3387: node proxy.js total used free shared buffers cached Mem: 502 497 5 0 3 41 -/+ buffers/cache: 452 50 Swap: 2047 692 1354
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3387 root 16 0 673m 329m 3196 S 0.0 65.5 3:47.65 node
估计待会就要报错了
var options = { hostnameOnly: true, router: { 'www.aa.com’: '127.0.0.1:3001’, 'www.bb.com’’: ‘127.0.0.1:3001’ } }; require(“http-proxy”).createServer(options).listen(80); 无任何复杂逻辑 照搬 https://github.com/nodejitsu/node-http-proxy#proxy-requests-using-a-hostname-only-proxytable 求高手解决