A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
2
votes
2 answers
Sails behind node http-proxy
I'm trying to put multiple sails server on same server, to do that I want to put a node http-proxy that redirect every domain on the right server like this :
var http = require('http'),
httpProxy = require('http-proxy'),
proxy =…

jaumard
- 8,202
- 3
- 40
- 63
2
votes
1 answer
Check app running on new port
I need to create application which get request for specific port and proxy it to new server on different port
for example the following port 3000 will be proxy to port 9000
and you actually run the application on 9000 ( under the hood) since the…
user4209821
2
votes
0 answers
How can I fix ESOCKETTIMEDOUT / ECONNRESET errors in Node.js processes
This is a fairly complex situation so I'll just describe the big picture. We've been having errors for weeks now, so any ideas would be appreciated.
We have four network hops:
client (Node.js)
|
AWS ELB
|
routing proxy service (Node.js)
|
Squid…

Michael McLoughlin
- 1,062
- 1
- 11
- 14
2
votes
1 answer
How to use local static files while setting up Proxy server
I am setting up proxy server using NODE and EXPRESS. I have the same setup/codebase in local and proxy server. But i want to use all the js,css,images and other static content from local machine and json response from proxy server. Now since the…

McQueen
- 460
- 2
- 9
- 20
2
votes
2 answers
I cannot use SNICallback
I couldn't manage using SNICallback on createServerfunction.
When I try the below codes I get an error as Missing PFX or certificate + pricate key.
How can I solve this issue?
var fs = require('fs'),
tls = require('tls'),
https =…

efkan
- 12,991
- 6
- 73
- 106
2
votes
1 answer
Modifying content delivered by node-http-proxy
Due to some limitations about the web services I am proxying, I have to inject some JS code so that it allows the iframe to access the parent window and perform some actions.
I have built a proxy system with node-http-proxy which works pretty…

user125498
- 25
- 4
2
votes
2 answers
Hosting multiple Node.JS applications recognizing subdomains with a proxy server
I am trying to redirect certain subdomains to a specific port on my ubuntu AWS EC2 virtual server. Already tried it with DNS and that wouldn't work so based on the following topics, Default route using node-http-proxy? and How do I use node.js…

CMPSoares
- 4,175
- 3
- 24
- 42
2
votes
2 answers
path based proxy with http-proxy nodejs
I want a proxy with path based routing.
But my code not working
var httpProxy = require('http-proxy')
var proxy = httpProxy.createProxy();
var options = {
'example.com/app1': 'http://localhost:4444',
'example.com/app2':…

Aron Suarez
- 33
- 1
- 11
2
votes
1 answer
Ghost in a subdirectory and over node-http-proxy
I'm trying to setup the Ghost blogging program (v0.4) in a subdirectory of another nodejs/express app. I was able to get it working following the steps outlined here: Node http-proxy and express
So, I setup the proxy to Ghost from my main app via…

Daren
- 91
- 1
- 6
2
votes
1 answer
Running multiple Node apps on Node cluster
We need to deploy multiple Node/Express apps on a set of servers (behind load balancer). These apps are fully independent of each other in terms of functionality. I'll first explain how I am thinking of doing this and then I am looking for input in…

MikeR
- 61
- 1
- 5
2
votes
1 answer
Using node-http-proxy, changing url with proxyRequest
When modifying a node-http-proxy example...
The Issue: When manually changing the req.headers.host to a remote host ('example.com'), the url in the the browser is not changing.
Note: I thought this was working, however when using google.com as my…

Fostah
- 2,947
- 4
- 56
- 78
2
votes
0 answers
Proxying WebSockets & HTTP using custom path with nodeJS to a separate NodeJS app?
CONTEXT
I am trying to build a new web app in NodeJS. This webapp uses two main components.
1) Code that I am writing within NodeJS - AKA my own logic flow.
2) A 3rd party open source NodeJS app - EtherCalc - that uses both HTTP &…

thisissami
- 15,445
- 16
- 47
- 74
2
votes
1 answer
Get requests per second from node.js http server
Is there a way in node.js to get the number of open connections and number of requests per second from a http server?
Assume the following simple server:
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
…

Justin
- 42,716
- 77
- 201
- 296
2
votes
2 answers
node-http-proxy socket.io websocket connection
I'm trying to get node-http-proxy with socket.io to work, but it always falls back to xhr, websockets won't work, although I'm connecting to the upgrade event as described in the node-http-proxy docs.
var httpProxy = require ("http-proxy");
var…

tom
- 692
- 6
- 12
2
votes
1 answer
load balancing with http-proxy
I'm checking out the http-proxy module, basicaly what i understood is it shifts between two different hosts with same port. So here's the question is it possible to shift between two different ports while using same hosts (for example, both hosts is…

nihulus
- 1,475
- 4
- 24
- 46