From: Tony Stevenson
ScriptAlias
can also be used in conjunction with
+ a script or handler you have. For example:
+ ScriptAlias /cgi-bin/ /web/cgi-handler.pl
+
In this scenario all files requested in /cgi-bin/
will be
+ handled by the file you have configured, this allows you to use your own custom
+ handler. You may want to use this as a wrapper for CGI so that you can add
+ content, or some other bespoke action.
DocumentRoot
in order to
avoid accidentally revealing their source code if the
diff --git a/docs/manual/mod/mod_alias.xml b/docs/manual/mod/mod_alias.xml
index 1afe5856ea..c4ade09655 100644
--- a/docs/manual/mod/mod_alias.xml
+++ b/docs/manual/mod/mod_alias.xml
@@ -373,6 +373,18 @@ target as a CGI script
</Location>
+ In this scenario all files requested in /cgi-bin/
will be
+ handled by the file you have configured, this allows you to use your own custom
+ handler. You may want to use this as a wrapper for CGI so that you can add
+ content, or some other bespoke action.