4
我使用反向代理從以下模塊 https://github.com/nodejitsu/node-http-proxy節點代理錯誤錯誤:連接ECONNREFUSED
和我犯錯了以下代碼
proxy.on('error', function (err, req, res) {
res.end('Error occurr'+ err);
});
連接ECONNREFUSED是什麼意思這個錯誤什麼可以解決它呢?
我使用
proxy = httpProxy.createProxyServer({});
proxy.web(req, res, {
target: 'http://' + hostname + ':' + port
});
proxy.on('error', function (err, req, res) {
res.end('Error occurr'+ err);
});
,我需要只是代理調用到新的端口