【发布时间】:2016-06-22 06:37:59
【问题描述】:
以下示例取自node-http-proxy的github页面
HTTPS -> HTTP
//
// Create the HTTPS proxy server in front of a HTTP server
//
httpProxy.createServer({
target: {
host: 'localhost',
port: 9009
},
ssl: {
key: fs.readFileSync('valid-ssl-key.pem', 'utf8'),
cert: fs.readFileSync('valid-ssl-cert.pem', 'utf8')
}
}).listen(8009);
问题:为什么 httpProxy 不侦听端口 443 以获取安全 SSL 流量?
【问题讨论】:
标签: node.js ssl proxy node-http-proxy