Route target paths in Proxy Table? #232

Closed
rigolepe opened this Issue Apr 15, 2012 · 3 comments

Comments

Projects
None yet
3 participants

I've noticed there is currently no support for paths on the target host in a Proxy Table:

var options = {
  router: {
    'myhost.com/appA': '127.0.0.1:8080',
    'myhost.com/appB': '127.0.0.1:9090/appB',
    'myhost.com/appC': '127.0.0.1:9090/appC'
  }
};

The first route will work, but the second and third will hang on the '/appB' and '/appC' part behind '127.0.0.1:9090'. I sometimes have multiple apps in the same servlet container that I wish to proxy. I was able to do that in a Apache reverse proxy configuration and I hoped to be able to do the same with node.

Is any support for this planned?

Contributor

coderarity commented Apr 18, 2012

Yeah, a lot of people have asked for this. I have a pull request open that would allow it, see nodejitsu/node-http-proxy#218

Contributor

cronopio commented Jun 5, 2012

@rigolepe 0.8.1 is out, can you test it again to see if still its an issue. Thanks

rigolepe commented Jun 6, 2012

Works as a charm :)

I was using CodeRarity's fix before, but now 0.8.1 does the job as well. Thanks!

@rigolepe rigolepe closed this Jun 6, 2012

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