mod_rewrite and ProxyPass
[hcoop/domtool2.git] / lib / proxy.dtl
diff --git a/lib/proxy.dtl b/lib/proxy.dtl
new file mode 100644 (file)
index 0000000..bc487a5
--- /dev/null
@@ -0,0 +1,10 @@
+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 <tt>ProxyPass</tt> and <tt>LocalProxyPass</tt> for
+  proxying to localhost only. The arguments give:
+  <li> The URL prefix to treat as proxied</li>
+  <li> The corresponding URL prefix on the other local server</li>
+  <li> The port number of the local server</li>}}