ScriptAlias virtual path
virtual is the translated location of the
script directory.
path is the full pathname of the directory which contains
server scripts which fulfill the request.
Note: You should always place a trailing / after ScriptAlias directives which reference directories, to prevent similar entries from conflicting with each other.
Several ScriptAlias directives may appear in the configuration file.
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/
This would cause requests such as /cgi-bin/foo to be satisfied
by running the script /usr/local/etc/httpd/cgi-bin/foo.
Thus, if someone requested /cgi-bin/a-script, the server would
run /usr/local/etc/httpd/cgi-bin/a-script and send its output
to the client.
Return to Resource Configuration File Overview