How use with node-http-proxy #298

Closed
celorodovalho opened this Issue Jan 17, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@celorodovalho

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

@larzconwell

This comment has been minimized.

Show comment Hide comment
@larzconwell

larzconwell Jun 13, 2013

Contributor

Is this still an issue? Or is your issue resolved involving #297?

Contributor

larzconwell commented Jun 13, 2013

Is this still an issue? Or is your issue resolved involving #297?

@celorodovalho

This comment has been minimized.

Show comment Hide comment
@celorodovalho

celorodovalho Jun 13, 2013

I did resolved this.
Thanks.

I did resolved this.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment