vibe.d beta banner
get vibe.d
0.7.30

Function listenHTTPReverseProxy

Transparently forwards all requests to the proxy to a destination_host.

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

Prototypes

void listenHTTPReverseProxy(
  HTTPServerSettings settings,
  HTTPReverseProxySettings proxy_settings
);

void listenHTTPReverseProxy(
  HTTPServerSettings settings,
  string destination_host,
  ushort destination_port
);
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.