## ScriptAlias

Syntax: ScriptAlias url-path directory-filename
Context: server config, virtual host
Status: Base
Module: mod_alias

The ScriptAlias directive has the same behavior as the Alias directive, except that in addition it marks the target directory as containing CGI scripts. URLs with a (%-decoded) path beginning with url-path will be mapped to scripts beginning with directory-filename.

Example:

> `ScriptAlias /cgi-bin/ /web/cgi-bin/`

A request for http://myserver/cgi-bin/foo would cause the server to run the script /web/cgi-bin/foo.