X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/f8dfbbcc29a40de94580697e610db6254b85f0fb..c53e82e40cef407de986aa329d31457915ad0dbe:/lib/proxy.dtl?ds=sidebyside diff --git a/lib/proxy.dtl b/lib/proxy.dtl dissimilarity index 87% index bc487a5..713fe6a 100644 --- a/lib/proxy.dtl +++ b/lib/proxy.dtl @@ -1,10 +1,8 @@ -extern type proxy_port; -{{A port number above 1024}} - -extern val localProxyPass : no_spaces -> no_spaces -> proxy_port -> [Vhost]; -extern val localProxyPassReverse : no_spaces -> no_spaces -> proxy_port -> [Vhost]; -{{Interface to Apache ProxyPass and LocalProxyPass for - proxying to localhost only. The arguments give: -
  • The URL prefix to treat as proxied
  • -
  • The corresponding URL prefix on the other local server
  • -
  • The port number of the local server
  • }} +extern type proxy_target; +{{URL prefix designating where to send proxied requests. + It can be any localhost URL on a port of at least 1024. + In addition, other allowed targets can be configured.}} + +extern val proxyPass : no_spaces -> proxy_target -> [Vhost]; +extern val proxyPassReverse : no_spaces -> proxy_target -> [Vhost]; +{{Interface to Apache ProxyPass and LocalProxyPass}}