extern val scriptAlias : location -> your_path -> [Vhost];
{{Like <tt>alias</tt>, for Apache's <tt>ScriptAlias</tt>}}
+extern val fastScriptAlias : location -> your_path -> [Vhost];
+{{Like <tt>scriptAlias</tt>, but instead sets the location to be
+served by a single-threaded fastcgi program. Apache will manage
+processes so the script must be able to cope with several instances
+running.}}
+
extern val errorDocument : no_spaces -> no_newlines -> [^Vhost];
{{The first argument specifies an HTTP error code, which should be handled using
the second argument, which is either a URL or a string to display.}}
write to;
write "\n"))
+val () = Env.action_two "fastScriptAlias"
+ ("from", Env.string, "to", Env.string)
+ (fn (from, to) =>
+ (write "\tAlias\t";
+ write from;
+ write " ";
+ write to;
+ write "\n";
+
+ write "\t<Location ";
+ write from;
+ write ">\n";
+ write "\t\tSetHandler fcgid-script\n";
+ (* FIXME: only set kerberos wrapper of waklog is on *)
+ write "\t\tFcgidWrapper \"";
+ write (Config.Apache.fastCgiWrapperOf (Domain.getUser ()));
+ write "\"\n";
+ write "\t</Location>"))
+
val () = Env.action_two "errorDocument"
("code", Env.string, "handler", Env.string)
(fn (code, handler) =>