vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function listenHTTPReverseProxy

Transparently forwards all requests to the proxy to a destination_host.

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 Sönke Ludwig

License

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