A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
29
votes
5 answers
Node js get and set data from different process
I've node application which done spawn(child process) to and application,
the application have host and port:
var exec = require('child_process').spawn;
var child = exec('start app');
console.log("Child Proc ID " + child.pid)
child.stdout.on('data',…
user4209821
23
votes
3 answers
Node.js http-proxy drops websocket requests
Okay, I've spent over a week trying to figure this out to no avail, so if anyone has a clue, you are a hero. This isn't going to be an easy question to answer, unless I am being a dunce.
I am using node-http-proxy to proxy sticky sessions to 16…

dthree
- 19,847
- 14
- 77
- 106
20
votes
4 answers
Node http-proxy and express
I'm trying to do something like this:
// Setup prox to handle blog requests
httpProxy.createServer({
hostnameOnly: true,
router: {
'http://localhost': '8080',
'http://localhost/blog': '2368'
…

BRogers
- 3,534
- 4
- 23
- 32
18
votes
3 answers
Rewrite response headers with node-http-proxy
I'm using node-http-proxy and want to watch for a particular response
header and rewrite it if necessary. Anyone here have suggestions on to
do this?
My proxy server sits in front of a couple different node servers as
well as a java webapp. The…

Tauren
- 26,795
- 42
- 131
- 167
17
votes
2 answers
proxy node request to new port and act like reverse proxy
I need to create an application that proxies a request from port A to Port B.
For instance if a user connects on port 3000 he will be routed (under the hood) to port 3001, therefore the "original" application will run on port 3001 but in the client…
user4445419
17
votes
2 answers
nginx vs node-http-proxy
Tell me please what is preferable to use for deployment of nodejs applications nginx or node-http-proxy. What is most robust?
The basic features I need are
proxy all requests to non 80 post
load balancer
Websocket supporting

Erik
- 14,060
- 49
- 132
- 218
15
votes
2 answers
Using node http-proxy to proxy websocket connections
I have an application that uses websockets via socket.io. For my application I would like to use a separate HTTP server for serving the static content and JavaScript for my application. Therefore, I need to put a proxy in place.
I am using…

ColinE
- 68,894
- 15
- 164
- 232
13
votes
2 answers
How to enable and view create-react-app proxy logs?
How can I view detailed logs of all requests and responses being handled by the proxy used by create-react-app?
I don't only want to log some endpoints. Instead, I want to see everything, in as much detail as possible, about what's going through the…

Justin Grant
- 44,807
- 15
- 124
- 208
13
votes
1 answer
Forward every request with node-http-proxy
I'm trying to setup a node-http-proxy that just forwards requests.
In the end this proxy should inject javascript in every website I visit through the browser..
Right now, most pages are forwarded and displayed correctly, but some, like…

greenish
- 1,042
- 1
- 8
- 18
13
votes
1 answer
Load balancing with node.js using http-proxy
I'm trying to code a load balancing with node.js and http-proxy. I want a loadBalancer that shares incoming request treatment between 2 servers.
var http = require('http'),
httpProxy = require('http-proxy');
var servers = [{host :'127.0.0.1', port…

Florent
- 241
- 2
- 7
12
votes
3 answers
Node hangs on POST request when using http-proxy and body-parser with express
I've also posted this to the relevant issue on http-proxy.
I'm using http-proxy with express so I can intercept requests between my client and api in order to add some cookies for authentication.
In order to authenticate the client must send a POST…

Matt Foxx Duncan
- 2,074
- 3
- 23
- 38
12
votes
5 answers
Persisting a cookie based session over node-http-proxy
I have a simple Express based Node.js web server that I'm using for development of a JavaScript application. I set up the server to use node-http-proxy to proxy API requests the application makes to a Jetty server that is running on a different…

tomswift
- 349
- 1
- 2
- 9
11
votes
1 answer
Node http-proxy-middleware not working with local servers as targert
I have a node server and I am proxying my api requests using http-proxy-middleware, similar to what happens in this post. When I proxy to real production server everything works just fine, but when I point the proxy to a local server it just doesn't…

Yaniv Efraim
- 6,633
- 7
- 53
- 96
11
votes
1 answer
Error while requesting user app before its up
I use node-http proxy module to run application with reverse proxy which is working as expected, in some cases user want to run application immediately which the status of it in progress (the app is not up yet) and it can take about 3-15 sec until…
user4445419
11
votes
4 answers
How to use node-http-proxy for HTTP to HTTPS routing?
Here's the module version that I'm using:
$ npm list -g | grep proxy
├─┬ http-proxy@0.10.0
A webservice calls into my machine and my task is to proxy the request to a different url and host with an additional query parameter based on the contents…

pulkitsinghal
- 3,855
- 13
- 45
- 84