A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
1
vote
2 answers
node-http-proxy POST request times out
I am using node-http-proxy for the POST request as follows:
route.js
---------
var express = require('express');
var httpProxy = require('http-proxy');
var bodyParser = require('body-parser');
var proxy =…

cucucool
- 3,777
- 8
- 48
- 63
1
vote
1 answer
node.js node-http-proxy not receiving trailers
I'm adding a trailer to a response in Node and I just can't seem to get the trailer to be received as part of the message. I want to use it to send timing information back to a load balancer I've written in Node, so it can monitor if requests are…

Melissa Clark
- 21
- 4
1
vote
1 answer
Jupyterhub Configurable Http Proxy issue
I have been working with Jupyterhub's Configurable Http Proxy and I have been adding the necessary options for the proxy to handle client's ssl certificates without having to use the command line options.
My main goal is that I want to take in a…

Grant Herman
- 923
- 2
- 13
- 29
1
vote
1 answer
NodeJS HTTP proxy - Add a header and update the request URL
I am using this module to do the following:
Parse the req URL
Add a new header to the request using the token from the URL
Update the actual request URL (remove the token from the URL)
I am trying to do that with the following code:
function…

cucucool
- 3,777
- 8
- 48
- 63
1
vote
1 answer
HTTP Proxy( Node.js) Not Performing Proper SSL Verification
I need to create a proxy server that is able to handle SSL certificate verification. I have been working with Node.js 's http-proxy library to handle ssl verification. My problem is that the proxy server does not do anything in regards to verifying…

Grant Herman
- 923
- 2
- 13
- 29
1
vote
0 answers
How to use http-proxy for a nodejs load balancing server on OpenShift.com
For the last couple of days I have tried to make this work. Just for testing purposes, I have three small gear nodejs apps on Openshift, and I want to have a load balancer on one that will distribute the load between the other two apps through a…

ElPirru
- 183
- 1
- 14
1
vote
1 answer
Getting CORS node-http-proxy to respond 200 to OPTIONS
I am trying to get a web page running on :9000 to make a request to a reverse proxy running in node on :8080 to accept requests as if it was on the same domain. I have learned that a different port == a different domain, thus OPTIONS requests are…

httpete
- 2,765
- 26
- 34
1
vote
1 answer
Calling WCF service over node proxy works on localhost only
I am trying to call a WCF Data service on another domain. The service uses NTLM, and the JSON returned depends on the authenticated user. I am using node-http-proxy to get over cross domain issues.
The service, lets…

Roshan
- 3,442
- 2
- 14
- 23
1
vote
1 answer
error while using node proxy
Im using the following program and when I run it i got following error I was able to run the app but when i put in the browser localhost:3000 I got this error in the console...
**Error: connect ECONNREFUSED**
at exports._errnoException…
user4261401
1
vote
1 answer
Create proxy according URL path
I need to create proxy according to some URL which is coming from the browser,
since I fairly new to this topic Im not sure how to test it...:(
I need some way to test it and see that this is actually working
I use this following code from this…

07_05_GuyT
- 2,787
- 14
- 43
- 88
1
vote
1 answer
Conditional port forwarding by hostname
I'm a newbie to node-http-proxy module.
my aim
I need to use the module provide multi-SSL for multi-subdomain.
For example;
if a user call process.localhost:1443 then I should route the call to process.localhost:2443 and
if a user call…

efkan
- 12,991
- 6
- 73
- 106
1
vote
1 answer
nodejs: node-http-proxy and harmon: rewriting the html response from the end point instead of the 302 redirected response.
I'm using nodejs with node-http-proxy along with harmon. I am using harmon to rewrite the proxied response to include a javascript file and a css file. When I set the target of the proxy to be http://nodejs.org or anything other than localhost, I…

nutterbrand
- 11
- 2
1
vote
0 answers
SNI proxy TLS session reuse over NodeJS
I'm setting up a SNI Proxy to be able to dynamically handle SSL connections on different domains. I'm using an HTTPS server with node-http-proxy (last version) over node.js v0.12 which supports SNI callback.
var sniOptions = {
SNIcallback :…

Giuliano Iacobelli
- 1,010
- 1
- 8
- 21
1
vote
0 answers
Optimize express.js app - keep-alive is not enabled
I have express.js app hosted on ubuntu server via node-http-proxy (https://github.com/nodejitsu/node-http-proxy)
I've run the app on http://www.webpagetest.org/ and receive warning that I should enable "Keep-alive" in my app.
I need advice from…

Kosmetika
- 20,774
- 37
- 108
- 172
1
vote
0 answers
Reverse proxy Ghost (Heroku app) from another app (expressjs)
Simple case: I have app1 - which is an install of ghost (site-blog.herokuapp.com). I have app2, which is a custom express.js app (site.herokuapp.com).
I want to serve the blog from site.herokuapp.com/blog.
For Ghost, here's part of my config.js
…

KGo
- 18,536
- 11
- 31
- 47