1

Is it possible to use the node-http-prox module and proxy.proxyRequest to a https server? I tried to do the following but doesnt seem to work.

app.get('/c/users/moreuser', function(req, res) {
    proxy.proxyRequest(req, res, {
        host: 'api.example.com',
        port: 80,
        https: true
    });
});

doing this i dont get any response from the server. But i can get response directly from the server.

morto
  • 73
  • 1
  • 8

1 Answers1

1

try port: 443, which is the default port for HTTPS.

Peter Lyons
  • 142,938
  • 30
  • 279
  • 274