CGI- Common Gateway Interface () HTTP, Web .
, WWW , . CGI CGI-, , , , , ., .
- WWW . WWW , , , . - C/C++, Fortran, Perl, TCL, Unix Shell, Visual Basic, Apple Script, . , cgi-bin WWW .
CGI mod_cgi :
ScriptAlias ;
ExecCGI Options.
CGI ScriptAlias. , -. CGI-, , Apache CGI.
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
Apache URL http://www.domain.com CGI.
ScriptAlias. <Directory>, .htaccess, .
<Directory /usr/local/apache/cgi-bin/>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
CGI ExecCGI.
Alias /cgi-bin/ "/usr/local/apache/cgi-bin/"
<Directory /usr/local/apache/cgi-bin/>
AllowOverride None
Options ExecCGI
SetHandler cgi-script
</Directory>
CGI . SetHandler <Directory> . AddHandler , CGI.
AddHandler cgi-script.cgi.pl.pm.exe.bat
ExecCGI. , CGI ExecCGI ScriptAlias.
CGI . AddType MIME-:
AddType application/x-http-cgi.cgi