vibe.d beta banner
get vibe.d
0.7.31

Function listenHTTPReverseProxy

Transparently forwards all requests to the proxy to a destination_host.

void listenHTTPReverseProxy (
  HTTPServerSettings settings,
  HTTPReverseProxySettings proxy_settings
);

void listenHTTPReverseProxy (
  HTTPServerSettings settings,
  string destination_host,
  ushort destination_port
);

You can use the hostName field in the 'settings' to combine multiple internal HTTP servers into one public web server with multiple virtual hosts.

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.