-extern val localProxyRewrite : no_spaces -> no_spaces -> proxy_port -> [Vhost];
-{{All requests matching the regular expression in the first argument are
- redirected to another HTTPD running on localhost at the given port, generating
- the new URI by substituting variables in the second argument as per Apache
- mod_rewrite.}}
+extern val proxyRewrite : regexp -> no_spaces -> proxy_reverse_target -> [mod_rewrite_flag] -> [^Vhost];
+
+{{Safe wrapper around mod_rewrite proxy flag. All requests matching
+ the regular expression in the first argument are proxied to the host
+ specified in the third argument, appending a new URI by substituting
+ variables in the second argument as per Apache
+ mod_rewrite. Additional rewrite flags may be specified.}}
+
+extern type mod_rewrite_trace_level;
+{{A mod_rewrite log level, between 0 and 8. 2 or 3 are useful for
+ debugging, higher will slow down apache considerably. 0 disables
+ rewrite logging.}}