-val () = Env.action_three "localProxyPass"
- ("from", Env.string, "to", Env.string, "port", Env.int)
- (fn (from, to, port) =>
- let
- val to =
- case to of
- "" => "/"
- | _ => if String.sub (to, 0) = #"/" then
- to
- else
- "/" ^ to
- in
- write "\tProxyPass\t";
- write from;
- write "\thttp://localhost:";
- write (Int.toString port);
- write to;
- write "\n"
- end)
-
-val () = Env.action_three "localProxyPassReverse"
- ("from", Env.string, "to", Env.string, "port", Env.int)
- (fn (from, to, port) =>
- let
- val to =
- case to of
- "" => "/"
- | _ => if String.sub (to, 0) = #"/" then
- to
- else
- "/" ^ to
- in
- write "\tProxyPassReverse\t";
- write from;
- write "\thttp://localhost:";
- write (Int.toString port);
- write to;
- write "\n"
- end)
+val () = Env.action_two "proxyPass"
+ ("from", Env.string, "to", Env.string)
+ (fn (from, to) =>
+ (write "\tProxyPass\t";
+ write from;
+ write "\t";
+ write to;
+ write "\n"))
+
+val () = Env.action_two "proxyPassReverse"
+ ("from", Env.string, "to", Env.string)
+ (fn (from, to) =>
+ (write "\tProxyPassReverse\t";
+ write from;
+ write "\t";
+ write to;
+ write "\n"))