Creates a factory which redirects requests to another server