2

I use Red bird reverse proxy for my meteor apps and my request are redirecly correctly when i use the below configuration i.e subdomain config

var proxy = require('redbird')({port: 80});

proxy.register("app1.example.com", "http://127.0.0.1:3000");
proxy.register("app2.example.com", "http://127.0.0.1:4000");

but when i use domain/ip + paths like in the below configuration

var proxy = require('redbird')({port: 80});

proxy.register("http://127.0.0.1/a", "http://127.0.0.1:3000");
proxy.register("http://127.0.0.1/b", "http://127.0.0.1:4000");

i get the error "no valid route found for given source". below is the screenshot from browser

screenshot from browser

Please let me know what i am doing wrong

Adi
  • 127
  • 2
  • 14
  • I assume you wanted to route both localhost and example.com to the same local server. Did I understand well? Maybe you should send an issue about this. https://github.com/OptimalBits/redbird/issues – inf3rno Feb 26 '16 at 09:17
  • I found the issue here: https://github.com/OptimalBits/redbird/issues/27 – inf3rno Feb 26 '16 at 09:52
  • @Adi - did you ever find a solution for this? – blueren Jul 04 '18 at 09:21
  • I haven't @blueren, try checking https://www.npmjs.com/package/hotel – Adi Jul 18 '18 at 14:49

0 Answers0