ScriptAlias virtual path
virtual is the translated location of the
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
Thus, if someone requested
/cgi-bin/a-script, the server would
/usr/local/etc/httpd/cgi-bin/a-script and send its output
to the client.
Return to Resource Configuration File Overview