Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

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, ...
Daren's user avatar
  • 91
0 votes
1 answer
2k views

I have a few node processes that I'm trying to reverse proxy into one localhost port. Node-http-proxy seemed like the simplest solution. I'm proxying to a couple of node.js process running express (...
stockholmux's user avatar
  • 1,225
4 votes
2 answers
3k views

i want to compute the response-time for each proxy-request, done by node-http-proxy, like this: var httpProxy = require('http-proxy'); var proxy = httpProxy.createProxyServer(); require('http')....
chris's user avatar
  • 169
4 votes
1 answer
1k views

I'm trying to emulate virtual hosts on nodeje express with http-proxy code httpProxy.createServer({ hostnameOnly : true, router : { 'secure.domain.com' : '127.0.0.1:9000' } })....
clarkk's user avatar
  • 1
0 votes
2 answers
864 views

I am developing a website using express.js and ember over node. I have hosted my website in a ubuntu server and this website uses a set of webservices (which are running in some other different ...
user avatar
0 votes
0 answers
757 views

I am using Karma to test my node server. After about a minute of running there is a "failed to proxy" error with error code 'ENOBUFS'. The error happens in 'karma/lib/middleware/proxy.js'. I have ...
Arwen Pond's user avatar
1 vote
1 answer
2k views

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 ...
user3098791's user avatar
20 votes
4 answers
39k views

I'm trying to do something like this: // Setup prox to handle blog requests httpProxy.createServer({ hostnameOnly: true, router: { 'http://localhost': '8080', 'http://...
BRogers's user avatar
  • 3,654
23 votes
3 answers
7k views

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 ...
dthree's user avatar
  • 20.9k
9 votes
4 answers
3k views

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 ...
user avatar
3 votes
1 answer
1k views

I wrote a small reverse proxy for hosting my applications on the same computer using http and node-http-proxy modules. For example: I have: proxy running on port 80 website1.com running on port 3000 ...
WoLfulus's user avatar
  • 1,977
0 votes
2 answers
1k views

I am developing an application using ember.js which is running over node. Now, I have to call some external webservices and construct my home page accordingly (based on the webservice response). ...
user avatar
0 votes
2 answers
2k views

Using node-http-proxy, I've set up a reverse proxy for routing requests: var httpProxy = require('http-proxy'); var server = httpProxy.createServer({ hostnameOnly: true, router: { '...
Guido Passage's user avatar
1 vote
1 answer
1k views

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) { ...
morto's user avatar
  • 73
2 votes
1 answer
871 views

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 ...
MikeR's user avatar
  • 61
0 votes
1 answer
196 views

I have found it's easy to use node-http-proxy to route a sub-directory to different ports on a local server. However, I haven't found if there's a way to run a custom function when doing the routing. ...
Mark Ebersole's user avatar
0 votes
1 answer
3k views

I'm trying to use Node's request module to make a request to https url. Code snippet below. var request = require('request') ,r = request.defaults( {'proxy':'https://localhost:8443', ...
Gireesh's user avatar
  • 706
4 votes
1 answer
3k views

These are the versions of node and required modules I am using: Node.js: 0.10.16 Websocket Library: einaros/ws [email protected] Proxy server: nodejitsu/node-http-proxy [email protected] When I run the ...
verma's user avatar
  • 1,305
0 votes
1 answer
144 views

I'm trying to debug why I get a 404 from a proxied server when use http-proxy. Is there a way I can find out what the proxied URL is? This is my current config: app.all('/api/*', function(request, ...
Ahmed Nuaman's user avatar
  • 13.4k
3 votes
2 answers
24k views

I was trying to hit the https url for google api. Using the code below but its giving some errors. but i can hitting one google api http url and its working very well without any error ...
rand's user avatar
  • 322
1 vote
1 answer
2k views

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 ...
Fostah's user avatar
  • 2,946
5 votes
1 answer
6k views

I am using http-proxy on node.js. I have a proxy request to another server. my requirement is that the proxy request should timeout in 10 seconds. Also when the time out happens, I should be able to ...
Srijit's user avatar
  • 505
4 votes
0 answers
445 views

While trying out http-proxy with node.js, I have the following piece of code: var httpProxy = require('http-proxy'); httpProxy.createServer( require('proxy-by-url')({ '/AAA': { port: 80, host: '...
E. Jaep's user avatar
  • 2,195
1 vote
5 answers
10k views

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 ...
everconfusedGuy's user avatar
1 vote
1 answer
862 views

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 ...
user1873073's user avatar
  • 3,680
0 votes
1 answer
934 views

We have backbone.js application that is using rest API. With every request user/pass should be send to the API. This is how we send the request: `Backbone.BasicAuth.set(tempUser, tempPass); this....
onetwo12's user avatar
  • 2,447
1 vote
1 answer
2k views

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 ...
everconfusedGuy's user avatar
3 votes
1 answer
1k views

For some reason http-proxy causes socket.io based websocket connection reconnect after every 2 minutes. Before reconnection messages are working just fine between client and server. If I bypass proxy, ...
Teemu J's user avatar
  • 31
2 votes
0 answers
783 views

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 - ...
thisissami's user avatar
  • 16.6k
1 vote
1 answer
752 views

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-...
igorpavlov's user avatar
  • 3,646
8 votes
1 answer
2k views

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' : '...
Tarang's user avatar
  • 76.1k
2 votes
1 answer
4k views

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) { ...
Justin's user avatar
  • 45.9k
14 votes
1 answer
19k views

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 ...
greenish's user avatar
  • 1,042
0 votes
1 answer
313 views

If I start a server python wsserver.py and then run python wsclient.py --host localhost --port 8888 the tornado server and client behave as expected. However, if I start up a proxy server as well: ...
srossross's user avatar
  • 1,393
0 votes
1 answer
2k views

I've been trying to make work "Proxying http from https using two certificates" with the last version of Nodejs currently available (v0.10.2) but I've not been able to do it. I did this with one ...
fuentecilla86's user avatar
11 votes
4 answers
22k views

Here's the module version that I'm using: $ npm list -g | grep proxy ├─┬ [email protected] A webservice calls into my machine and my task is to proxy the request to a different url and host with an ...
pulkitsinghal's user avatar
2 votes
2 answers
4k views

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. ...
tom's user avatar
  • 692
5 votes
1 answer
6k views

Under node.js 0.8, I'm using node-http-proxy in "router table" mode configured like so: var httpProxy = require("http-proxy"); var config = require("./config"); proxyServer = httpProxy.createServer({...
user85461's user avatar
  • 6,730
1 vote
1 answer
5k views

I want to run my node.js app on port 80 on Apache server. I have tried 2 methods one via Apache: <VirtualHost *:80> ServerName domainName.com ServerAlias www.domainName.com ...
Loolooii's user avatar
  • 9,268
0 votes
2 answers
869 views

I want to proxy my Wordpress which is hosted at localhost at port 8888. When I http to this node-http-proxy as follows http:// localhost:8001/ it re-directs to http:// localhost:8888/. I mean that ...
Phil's user avatar
  • 50.9k
5 votes
3 answers
6k views

I created a proxy server in node.js using the node-http-proxy module. Looks like this: var http = require('http'), httpProxy = require('http-proxy'), io = require("socket.io").listen(5555); var ...
Psycho's user avatar
  • 335
0 votes
0 answers
485 views

I have a web app, which has a dashboard functionality. The app is used by many different companies in many different environments, all browsers. There is a piece of javascript that refreshes that ...
Nik's user avatar
  • 2,706
0 votes
1 answer
92 views

I have a node-http-proxy server using the proxytable configuration: var options = { router: { 'a' : '127.0.0.1:81', 'b': '127.0.0.1:82', 'c': '127.0.0.1:83', 'else' : '127.0.0.1:...
Tarang's user avatar
  • 76.1k
8 votes
3 answers
12k views

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-...
Jason Roberts's user avatar
3 votes
0 answers
669 views

I'm new to Node.js and struggling to understand how to create a simple proxy for a given route/url. I'm trying to avoid cross-domain issues for a front-end javascript logging framework by using a ...
garretriddle's user avatar
5 votes
1 answer
2k views

Update: Turns out the only problem was that I was behind a firewall that blocked some ports, but not 8000. Edit: TL;DR: can't connect to port 9000 remotely, but port 8000 is ok and I don't know why :( ...
Andrei Mustata's user avatar
0 votes
1 answer
190 views

I have a node-http-proxy set up to forward site/n requests to node.js (at port 9000), and other requests to apache (port 8000). This is because I heavily make use of socket.io, and I don't want apache ...
apscience's user avatar
  • 7,293
6 votes
1 answer
4k views

I'm writing a node.js proxy server, serving requests to an API on different domain. I'd like to use node-http-proxy and I have already found a way to modify response headers. But is there a way to ...
aliona's user avatar
  • 447
13 votes
1 answer
10k views

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-...
Florent's user avatar
  • 241
17 votes
2 answers
13k views

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 ...
Erik's user avatar
  • 14.9k