ScriptAlias [short-cut-name] [/path/to/scripts]
dev.leistware.com/cgi/ScriptToExecute.pl
Use the ScriptAlias directive to channel all requests to a specific directory for executing scipts. ScriptAlias creates a token for referencing a different and often longer path. Use the ScriptAlias directive to tell apache where the scripts are. In essence ScriptAlias creates a shortcut to a set of scripts.
Use the short-cut-name in the URL to access the scripts in the cgi directory. For example: I have a script alias that uses the name i.e. shor-cut-name of cgi
. Therefore, the path I use to access the scripts is
Use ScriptAlias when you want to have all scripts in a directory for easier control.
The Catch: Apache will try to execute every file in the directory identified by the ScriptAlias directive when it's called by a url.