apache: reverse host/rewrite arguments in proxyRewrite
[hcoop/domtool2.git] / src / plugins / apache.sml
index a490419..236aa9d 100644 (file)
@@ -665,8 +665,8 @@ fun checkExpires () =
         expiresEnabled := true)
 
 val () = Env.action_four "proxyRewrite"
-        ("from", Env.string, "tohost", Env.string, "to", Env.string, "flags", Env.list flag)
-        (fn (from, tohost, to, flags) =>
+        ("from", Env.string, "to", Env.string, "tohost", Env.string, "flags", Env.list flag)
+        (fn (from, to, tohost, flags) =>
             (checkRewrite ();
              write "\tRewriteRule\t\"";
              write from;