extern val redir304 : redirect_code;
extern val redir305 : redirect_code;
extern val redir307 : redirect_code;
+extern val notfound : redirect_code;
+{{Return 404 Not Found}}
extern type rewrite_arg;
{{Some mod_rewrite flags take arguments.
arguments, which excludes commas and some other characters.}}
extern type mod_rewrite_flag;
-{{See <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule">the
+{{See <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule">the
Apache documentation</a> for information on what these flags mean.}}
extern val redirect : mod_rewrite_flag;
extern val skip : int -> mod_rewrite_flag;
extern val env : rewrite_arg -> rewrite_arg -> mod_rewrite_flag;
-extern val rewriteRule : no_spaces -> no_spaces -> [mod_rewrite_flag] -> [Vhost];
-{{See <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule">Apache
+extern type mod_rewrite_cond_flag;
+{{See <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond">the
+ Apache documentation</a> for information on what these flags mean.}}
+
+extern val cond_nocase : mod_rewrite_cond_flag;
+extern val ornext : mod_rewrite_cond_flag;
+
+extern val rewriteRule : regexp -> no_spaces -> [mod_rewrite_flag] -> [^Vhost];
+{{See <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule">Apache
documentation for <tt>RewriteRule</tt></a>.}}
-extern val localProxyRewrite : no_spaces -> no_spaces -> proxy_port -> [Vhost];
+extern val rewriteCond : no_spaces -> regexp -> [mod_rewrite_cond_flag] -> [^Vhost];
+{{See <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond">Apache
+ documentation for <tt>RewriteCond</tt></a>.}}
+
+extern val rewriteBase : no_spaces -> [Location];
+{{See <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritebase">Apache
+ documentation for <tt>RewriteBase</tt></a>.}}
+
+extern type proxy_port;
+{{A port number above 1024}}
+
+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 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.}}
+
+extern val rewriteLogLevel : mod_rewrite_trace_level -> [Vhost];
+{{See <a href="https://httpd.apache.org/docs/current/mod/mod_rewrite.html#logging">
+ documentation for <tt>mod_rewrite log levels</tt></a>.}}