// Route to any global ip proxy.register("optimalbits.com", "http://167.23.42.67:8000");
// Route to any local ip, for example from docker containers. proxy.register("example.com", "http://172.17.42.1:8001");
// Route from hostnames as well as paths proxy.register("example.com/static", "http://172.17.42.1:8002"); proxy.register("example.com/media", "http://172.17.42.1:8003");
// Subdomains, paths, everything just works as expected proxy.register("abc.example.com", "http://172.17.42.4:8080"); proxy.register("abc.example.com/media", "http://172.17.42.5:8080");
// Route to any href including a target path proxy.register("foobar.example.com", "http://172.17.42.6:8080/foobar");