A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
10
votes
1 answer
node proxy error Error: connect ECONNREFUSED
I use reverse proxy from the following module
https://github.com/nodejitsu/node-http-proxy
and I got in err for the following code
proxy.on('error', function (err, req, res) {
res.end('Error occurr'+ err);
});
connect ECONNREFUSEDwhat does it…

07_05_GuyT
- 2,787
- 14
- 43
- 88
10
votes
2 answers
Node proxy web sockets how to check
I use the following module and it works fine for reverse proxy
https://github.com/nodejitsu/node-http-proxy
currently I've used the code like the following example
httpProxy.createServer({
target: 'ws://localhost:9014',
ws:…

07_05_GuyT
- 2,787
- 14
- 43
- 88
10
votes
1 answer
Reverse proxy header should be provided
I use reverse proxy from the following module in node app-:
https://github.com/nodejitsu/node-http-proxy
My question is whether I need to modify the header for state of reverse proxy to work like…
user1578363
9
votes
4 answers
Accessing webservices from a website which is running behind a proxy
I am designing a website using ember and express over node. Its running in a server, say: SERVER_1.
I have few webservices running in another server, say: SERVER_2.
That is:
website in SERVER_1 and webservices available in SERVER_2
SERVER_1 is…
user915303
8
votes
1 answer
Why is Chrome waiting before every second request when using webpack-dev-server?
Can someone help me understand what is happening in the hundreds of milliseconds before the initial connection?
It happens on every other request only as shown.
The requests are POSTs made to the same ressource on localhost - against an ASP.NET…

asgerhallas
- 16,890
- 6
- 50
- 68
8
votes
1 answer
Unexpected latency in response time at Node server
Problem statement-
We are using router between internet client and downstream service. Router(service) is written in Node.js. Its responsiiblty is to pass internet client's request to corresponding downstream service, and return back the response to…

devsda
- 4,112
- 9
- 50
- 87
8
votes
1 answer
Node HTTP-Proxy to HTTPS server with client certificate
Our servers rely on client certificates to validate access. Right now neither Electron nor NW.JS seem to support client certificates yet, which prevents us from creating an application that can connect to our server.
After doing some research, it…

kjlaw89
- 101
- 1
- 1
- 7
8
votes
1 answer
Node http proxy with proxytable and websockets
I'm trying to get websockets to also work with node-http-proxy. The difference is i'm using a proxytable:
var options = {
router: {
'a.websterten.com': '127.0.0.1:150',
'b.websterten.com' : '127.0.0.1:151',
}
};
var server =…

Tarang
- 75,157
- 39
- 215
- 276
8
votes
3 answers
How to reverse proxy client POST & PUT requests using node-http-proxy
I'm trying to use the node-http-proxy as a reverse proxy, but I can't seem to get POST and PUT requests to work. The file server1.js is the reverse proxy (at least for requests with the url "/forward-this") and server2.js is the server that receives…

Jason Roberts
- 95
- 1
- 1
- 4
7
votes
2 answers
Node JS HTTP Proxy hanging up
I have an http-proxy to proxy any website and inject some custom JS file before to serve the HTML back to the client. Whenever I try to access the proxied website, it will hang up or the browser seems to load indeterminately. But when I check the…

Nizar B.
- 3,098
- 9
- 38
- 56
7
votes
1 answer
Node Http Proxy Web Socket Balance
I need to able to balance websocket on application level. Lets say forward websocket request on the basis of message I received, decode it on proxy and then using that data send to another socket server using some logic.
But I am unable to do this.…

Abhishek Sharma
- 2,485
- 1
- 21
- 35
7
votes
1 answer
Node http-proxy in Docker container
I have the following code that works great in my local environment. However, when I try to run the same code from a Docker container (via Boot2Docker), I simply cannot get to https://[boot2docker_ip]:4000
I tried updating the target value in the…

Moon
- 33,439
- 20
- 81
- 132
7
votes
2 answers
How to proxy to root path with node http-proxy
I am trying to setup a proxy with an express app to a root path from a specific path in my application:
http://my-domain.com/some/route --> http://another-domain:8000/
I have tried multiple things per the http-proxy docs but I keep hitting a wall…

Michael
- 891
- 2
- 16
- 32
7
votes
2 answers
Invoking an asynchronous method inside a middleware in node-http-proxy
I'm trying to create a proxy with node-http-proxy in Node.js that checks whether a request is authorized in a mongodb.
Basically, I created a middleware module for the node-http-proxy that I use like…

domguinard
- 923
- 6
- 12
6
votes
2 answers
How can I suppress 301 redirects from the target with node-http-proxy?
When the target of the proxy issues a redirect (301 in this case), the proxy forwards that to the client. The client is then redirected to the actual domain and no longer using the proxy. Is there a way to prevent this redirection from affecting the…

davidmyersdev
- 1,042
- 8
- 10