mod_cgi.cfile, and is compiled in by default. It provides for execution of CGI scripts. Any file with mime type
application/x-httpd-cgiwill be processed by this module.
application/x-httpd-cgiwill be treated as a CGI script, and run by the server, with its output being returned to the client. Files acquire this type either by having a name ending in an extension defined by the AddType directive, or by being in a ScriptAlias directory.
When the server invokes a CGI script, it will add a variable called
DOCUMENT_ROOT to the environment. This variable will contain the
value of the DocumentRoot