Using with a framework like GeddyJS #368

celorodovalho opened this Issue Jan 17, 2013 · 1 comment

2 participants


How do this?

If the "createServer" of GeddyJS is calling inside of the framework, how i can add a proxy in a running server?

I have a server running in the port 4000, but i dont have access to the function that start the server, but i need to put a proxy to... something like this:

var http = require('http'),
httpProxy = require('http-proxy');
// Create your proxy server
httpProxy.createServer(4000, 'localhost').listen(8000);

But "localhost:4000" already running or already started before the httpProxy.createServer

@indexzero indexzero closed this Jan 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment