AddHandlermaps file extensions to specific handlers. For example, the
cgi-scripthandler can be matched with the extension
.cgito automatically treat a file ending with
.cgias a CGI script. The following is a sample
AddHandlerdirective for the
AddHandler cgi-script .cgi
This directive enables CGIs outside of the
cgi-binto function in any directory on the server which has the
ExecCGIoption within the directories container. Refer to Section 10.5.22, “
Directory” for more information about setting the
ExecCGIoption for a directory.
In addition to CGI scripts, the
AddHandlerdirective is used to process server-parsed HTML and image-map files.