ScriptAlias directive


Purpose

The ScriptAlias directive creates a virtual directory) on your server. Any accesses to that virtual directory will be satisfied by returning the output of a server script in that directory.


Syntax

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.

Several ScriptAlias directives may appear in the configuration file.


Example

ScriptAlias /htbin /usr/local/etc/httpd/htbin

This would cause requests such as /htbin/foo to be satisfied by running the script /usr/local/etc/httpd/htbin/foo.

Thus, if someone requested /images/foo.gif, the server would return /ftp/pub/images/foo.gif.


Return to Resource Configuration File Overview

httpd@ncsa.uiuc.edu