Portal Home > Knowledge Base > Apache > What is mod_cgi?

What is mod_cgi?

With mod_cgi, any file that has the handler cgi-script will be treated as a CGI script, and run by the server with its output being returned to the client. Files acquire this handler either by having a name containing an extension defined by the AddHandler directive, or by being in a ScriptAlias directory.

When using a multi-threaded MPM under Linux, the module mod_cgid should be used in place of this module. At the user level, the two modules are essentially identical.

For backward-compatibility, the cgi-script handler will also be activated for any file with the mime-type application/x-httpd-cgi.

Also Read

Powered by WHMCompleteSolution