Apache Reference: mod_alias, ScriptAlias

ScriptAlias

Map a URL Prefix to a Script Prefix
Syntax: ScriptAlias url-prefix A
Example: ScriptAlias /cgi-bin /www/cgi-bin
Since: Apache 1.0

This directive has the same behavior and syntax as the Alias directive, but it also marks the target directory as containing CGI scripts. URLs whose path begins with url-prefix will be mapped to scripts that begin with fs-prefix.