A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
1
vote
0 answers
http-proxy exiting on failure
I'm using Node.js (and Express, if that matters) to act as a proxy, using http-proxy, like this:
var routingProxy = httpProxy.createServer();
app.use('/api', function (req, res) {
// ... calculate host and port
var target = "http://" + host…

Michael Lorton
- 43,060
- 26
- 103
- 144
1
vote
1 answer
Nodejs outbound HTTP requests delayed despite high maxSockets
I am developing a node.js app locally on Mac OS X 10.9.5 that proxies requests for large files on another server. I have tried writing my app using node-http-proxy, and also with a simple http/request one-liner (req.pipe(request()).pipe(res)). Both…

Robin
- 13
- 2
1
vote
0 answers
How to detect when target server is down in http-proxy?
I'm trying to create an internet facing server for a internal node express server that I am running in a windows machine. For this purpose, I have a virtual unix box with ports opened and I am using http-proxy to make a proxy server which redirects…

Jobin James
- 35
- 5
1
vote
1 answer
Node.js: using express route for url rewrite to proxy to etherpad
my first question on stackoverflow ;).
What I try to do:
I want to use an express route "/pad/*" to show etherpads (etherpad lite) and manipulate what pad the user will see. So, if I get "/pad/p/something", the "something" will be processed, and…

Wilm
- 41
- 4
1
vote
2 answers
Ember-CLI -- Setting HTTP Authorization Headers on HTTP-Proxy
I am currently using GrapheneDB for my Neo4J database which I am pulling information from my Ember application. Neo4J requires Basic HTTP Authentication and since I want a more secure method (instead of explicityly stating the headers in my ajax…

kaiwah.ng
- 267
- 2
- 15
1
vote
1 answer
How do I configure node-http-proxy for outgoing requests?
All the examples for node-http-proxy show a {target: } option, but I don't want to proxy to a single target. How do I set it up for outbound requests (to any URL)?

Brent Washburne
- 12,904
- 4
- 60
- 82
1
vote
2 answers
Express.js: reverse proxying different web app along with assets
I want to allow an authenticated client in Express to access to other web applications that are running on the server, but on different ports.
For example, I have express running on http://myDomain and I have another application running on say port…

user1027169
- 2,627
- 3
- 27
- 50
1
vote
2 answers
Running Apache with virtual Hosts behind node.js proxy
So this is my attempt, an I'm stuck.
I have an apache2 web server with over 10 virtual hosts. All domains are bound to the servers ip, and apache routes via virtual hosts, so every domain gets it's right content. That works since years already.
Now…

marschro
- 791
- 8
- 23
1
vote
1 answer
How to reverse proxy to local server without incoming ports opened using node.js
I have a local web server which has only outgoing internet access.
I have a public server on the cloud, which cannot access my local web server directly.
I want to find a way to have my local web server connected to the public server, and for the…

user3098791
- 39
- 1
- 2
- 6
1
vote
1 answer
express node-http-proxy , proxy.proxyRequest to https server?
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:…

morto
- 73
- 1
- 8
1
vote
5 answers
creating a forward https proxy using http-node-proxy
I am trying to create a forward proxy capable of handling HTTPS websites as well. I am trying to observe and modify traffic for different sites. This is my code which works for http sites but not for https sites.
httpProxy.createServer(function(req,…

everconfusedGuy
- 2,709
- 27
- 43
1
vote
1 answer
How to proxy all HTTP requests with node-http-proxy
I am trying to setup node-http-proxy. My goal is to put a proxy on my website. I could manually do this by doing the GETs on the server and then changing the links in the HTML but I would like to use an existing solution if there is one. Maybe I…

user1873073
- 3,580
- 5
- 46
- 81
1
vote
1 answer
Accessing response headers using node-http-proxy
I am trying to modify the response with the help of a proxy created using node-http-proxy.
However I am not able to access the response headers. I want to access the response headers since I would like to modify javascript files and send the…

everconfusedGuy
- 2,709
- 27
- 43
1
vote
1 answer
HTTPS on Nodejitsu using Express
Okay. I have an app on express which also uses Socket.io and works fine via HTTP. However, now I have to move to HTTPS. Nodejitsu provide a lot of documentation on this. They suggest to use node-http-proxy…

igorpavlov
- 3,576
- 6
- 29
- 56
1
vote
1 answer
How to run node.js app on port 80 using http-proxy?
I want to run my node.js app on port 80 on Apache server. I have tried 2 methods one via Apache:
ServerName domainName.com
ServerAlias www.domainName.com
ProxyRequests off
Order deny,allow
…

Loolooii
- 8,588
- 14
- 66
- 90