Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://www.arcetri.astro.it/manual/ko/mod/mod_cgi.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013
Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 05:32:17 2014
Êîäèðîâêà: ISO8859-5

Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï
mod_cgi - Apache HTTP Server
<-
Apache > HTTP Server > Documentation > Version 2.2 > È?Åò

ÎÖÖÔÔÅ È?Åò mod_cgi

ÀÅÄÙ×á Î?Îþ:  en  |  ja  |  ko 

ÐÜ É?Ì-ÄÒ ÓæÍÕÖ× É?Ï?ÐÜ ÎÖÄåÄßÄé. ÓæÁéÏÅ Ê?ÀöÅØ ÃËÏûÐÊ ÏÅÎþ É?Ì-È? Ò?Àý×ßÌÌÏô.
ÌÃÈý:CGI ÍÊÕ?ÈÃÖ? Í××ð
Ë?ÕÒ:Base
È?ÅòÈý:cgi_module
ÌâÍÊÖÔÐß:mod_cgi.c

ÏôÎð

Ì-É?ÄÒ mime typeÐÜ application/x-httpd-cgiÐÜÀÕÃ? (ÎÖÖÔÔÅ 1.1 ÐÜØÔ) ×êÅùÇ?ÀÅ cgi-scriptÐÞ È?Å÷ ÖÔÐßÐË CGI ÍÊÕ?ÈÃÖ?ÇÞ ÐÞÍÔ×ßÏ?, Í××ð×ßÀý, Áç ÀñÀ?È? Õ?Æ?ÐÜÎ?Ö?ÏÅÀä ÊÈÃÍÄé. ÖÔÐßÐÜ AddType Ñ?ÍÓÎþÇÞ Ñ?Ñ?×á Ø?ÐõÐêÈ? ÀÅÑ?ÀÕÃ?, ScriptAlias Å?ÇÊÕôÈ? ÎØÏÅ ÐæÐÈÈù CGIÇÞ ÓÃÈ?ÅØÄé.

Ì-É?ÄÒ CGI ÍÊÕ?ÈÃÖ?È? ÊÞÈ?Æ? DOCUMENT_ROOTÆ?ÄÒ Ø?ÀöÊ?Ì?È? ÓïÀÅ×áÄé. ÐÜ Ê?Ì?ÄÒ DocumentRoot ÌÃÑ?À?ÐË ÀÅÑ?Äé.

ÎÖÖÔÔÅÏÅÌ- CGI ÍÊÕ?ÈÃÖ?È? Ë÷Ïû×ßÄÒ ÉöÉÏÅ Äû×á ÌâÀÃÄÒ CGIÇÞ ÅÏÐ? ÖôÐÜÑ? ËÌÊ Õ?ÕôÈ?Î?ÐË Ò?Àý×ßÆ?.

Ð?ÄàÍÊÏÅÌ- ÄéÑïÎÂÇÉÅõ MPMÐË Ë÷Ïû×áÄéÈù ÐÜ È?ÅòÄûÍÕ mod_cgid È?ÅòÐË Ë÷Ïû×èÎï ×áÄé. Ë÷ÏûÐê ÐäÐõÏÅÌ- ÐÜ ÅÞ È?ÅòÐÊ ÁòÊËÐ?ÐÈÇÞ ÅÏÐß×ßÄé.

Ñ?ÍÓÎþÅù

ÑæÑ?

Ò?Àý

top

CGI Ø?ÀöÊ?Ì?

Ì-É?ÄÒ ÄéÐÍÀ? ÀÀÐÊ ÉöÉÐÈÇÞ CGI ×?ÑèÐÜ ÌÃÈý×ßÄÒ CGI Ø?ÀöÊ?Ì?È? ÌÃÑ?×áÄé:

PATH_INFO
ÐÜ Ê?Ì?ÄÒ AcceptPathInfo Ñ?ÍÓÎþÈ? Ñ?Ñ? offÇÞ Ñ?Ñ?×á ÀöÏüÏÅÈÈ ÌÃÑ?×áÄé. AcceptPathInfoÀÅ Î?ÄÒ ÀöÏü Ì-É?ÄÒ ÁòÊËÐ?ÐÈÇÞ ÀöÇÞ Ñ?ÊÈÀÅ ÐæÄÒ ÏôÓËÏÅ Äû×è 404 NOT FOUND ÏÐÇ?È? ÃËÑ?ÈÈ, mod_cgiÄÒ ÀöÇÞ Ñ?ÊÈÈ? (URIÏÅÌ- ÍÊÕ?ÈÃÖ? ÖÔÐßÈý ÅêÏÅ Ã?ÏÐÄÒ /more/path/info) ÉîÄÒÄé. AcceptPathInfo Ñ?ÍÓÎþÈ? ËÇ?×ßÈù mod_cgi ÏôÓËÏÅ Äû×èÌ- AcceptPathInfoÈ? OnÐÈÇÞ ÌÃÑ?×á ÀÝÀ? ÀÀÄé.
REMOTE_HOST
ÐÜ Ê?Ì?ÄÒ HostnameLookupsÀÅ onÐÜÀý (ÁòÊËÀ?ÐÊ off), Ñ?Ìã×á Ø?ÍÊÖ? ÑæÌâÈ? Ï?DNS ÀÛË?×ßÏ? Í×Ñ? Ø?ÍÊÖ?ÈýÐË Ó?ÐÊ ÀöÏüÏÅÈÈ ÌÃÑ?×áÄé.
REMOTE_IDENT
ÐÜ Ê?Ì?ÄÒ IdentityCheckÀÅ onÐÜÀý, Ñ?Ìã×á Ø?ÍÊÖ?ÀÅ ident ×ÑÇÞÕôÔíÐË Ñ?Ï?×ßÄÒ ÀöÏüÏÅÈÈ ÌÃÑ?×áÄé. ÍÁÀä ÐÜ À?ÐË ÌãÐß Ì? ÐæÁòÆ?É?ÏÅ ÐÜ Ê?Ì?Ð× ÃËÏûÐË ÉßÐÈÈù ÎØÅ×Àý, Õ?Æ?ÐÜÎ?Ö?ÏÝ Ì-É? Ë÷ÐÜÏÅ ×ÑÇßÍÓÀÅ ÐæÄéÈù Ê?Ì? ÃËÏûÐÜ ÏßÐ?Ø? É?Ð×ÉÜ×äÐË ÑæÐ××ßÆ?.
REMOTE_USER
CGI ÍÊÕ?ÈÃÖ?ÀÅ ÐÞÑ?ÐË ÀÕÓÔÎï×ßÄÒ ÀöÏüÏÅÈÈ ÌÃÑ?×áÄé.
top

CGI Å?É?Áû

ÎþÅ?ÏÅÌ- ÐïÈ? Í××ðÅ×ÄÒÑ? ÍÊÕ?ÈÃÖ?Ð× ÓòÇÒÐË (×?ÑèÓòÇÒÀ? ×?ÑèÏÐÇ?) ÊÌ Ì? Î?ÁòÆ?É?ÏÅ CGI ÍÊÕ?ÈÃÖ?ÄÒ Ð?ÕûÐ?ÐÈÇÞ Å?É?Áû×ßÁò ÎþÇÑÏ?Äé. ÎÖÖÔÔÅ 1.2 ÐÜØÔÏÅ ÓïÀÅÅØ Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÈù ÉïË×á ÏÐÇ?È? ÐêÌÌØ? ÇÞÁçÏÅ ÃÂÁö Ì? ÐæÄé.

CGI ÇÞÁçÖÔÐß ×?ÍÔ

CGI ÏÐÇ?ÇÞÁçÄÒ Ñ?Ë?Ð?ÐÈÇÞ Í××ð×ßÑ? È?×á CGIÈ? ÁòÇß×áÄé. ÏÐÇ?ÀÅ ÉïË×á CGI ÍÊÕ?ÈÃÖ?ÄÒ ÇÞÁçÏÅ Ï?Ç? ÑéÐ× Ñ?ÊÈÈ? ÃÂÁôÄé. ÓÉÉ?ÒÀ ÅÞ ÑéÐÊ ×çË? ÎÖÇÅÏÝ ÀÀÐÊ ×?ÍÔÐÜÄé:

%% [ÍÓÀ?] ÏôÓËÑé
%% HTTP-Ë?ÕÒ CGI-ÍÊÕ?ÈÃÖ?-ÖÔÐßÈý

CGI ÍÊÕ?ÈÃÖ?È? Í××ð×â Ì? Î?ÄÒ ÏÐÇ?ÐÞ ÀöÏü ÇÞÁçÖÔÐßÏÅ ÓïÀÅÇÞ ÅÞ ÑéÐË Ä? ÁòÇß×áÄé:

%%error
ÏÐÇ?É?

ÍÊÕ?ÈÃÖ?ÀÅ (ÊÈÕû ÍÊÕ?ÈÃÖ?Ð× É?ÁçÆ?É?ÏÅ) ÐïÈ?ÅØ ×üÄ? Ñ?ÊÈÈ? ÉíØ?×ßÄÒ ÀöÏü, ÄéÐÍ ÃËÏûÐË ÇÞÁçÏÅ ÁòÇß×áÄé:

%request
ÉîÐÊ È?Å÷ HTTP ×üÄ?
(ÐæÄéÈù) POSTÃ? PUT ÃËÏû
%response
CGI ÍÊÕ?ÈÃÖ? ÓòÇÒÐ× È?Å÷ ×üÄ?
%stdout
CGI ×?ÑèÓòÇÒ
%stderr
CGI ×?ÑèÏÐÇ?

(ÍÊÕ?ÈÃÖ?ÀÅ ×?ÑèÓòÇÒÐÜÃ? ×?ÑèÏÐÇ?ÏÅ ÎÖÉ? ÃËÏûÅÅ ÓòÇÒ×ßÑ? ÎÚÎâÄéÈù %stdoutÀ? %stderr ÊÞÊàÐÊ ËÇ?ÅÙ Ì? ÐæÄé).

top

ScriptLog Ñ?ÍÓÎþ

ÌÃÈý:CGI ÍÊÕ?ÈÃÖ? ÏÐÇ?ÇÞÁçÖÔÐßÐ× Ð?ÔÅ
É?É:ScriptLog file-path
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Base
È?Åò:mod_cgi, mod_cgid

ScriptLog Ñ?ÍÓÎþÄÒ CGI ÍÊÕ?ÈÃÖ? ÏÐÇ?ÇÞÁçÖÔÐßÐË Ñ?Ñ?×áÄé. ScriptLogÈ? Ë÷Ïû×ßÑ?ÎÚÐÈÈù ÏÐÇ?ÇÞÁçÈ? ÈÈÅùÑ? ÎÚÄÒÄé. Ë÷Ïû×ßÈù ÎÖÁäÈåÖ?ÇÞ Ñ?Ñ?×á ÖÔÐßÏÅ CGI ÏÐÇ?È? ÁòÇß×áÄé. Ë?ÄûÀöÇÞÈ? Ñ?Ñ?×ßÈù ServerRootÏÅ Ë?ÄûÀöÇÞÇÞ ÉîÎÖÅùÐÞÄé.

ÏÉÑ?

ScriptLog logs/cgi_log

ÐêÍÔ ×ÑÇÞÌÌÍÊÈ? Í××ð×ßÄÒ Ë÷ÏûÐê, Ñÿ User Ñ?ÍÓÎþÇÞ Ñ?Ñ?×á Ë÷ÏûÐê Á××áÐÈÇÞ ÇÞÁçÈ? Ï?Äé. ÁçÇÅÌ- Áç Ë÷ÏûÐêÀÅ ÍÊÕ?ÈÃÖ? ÇÞÁçÀÅ ÐæÄÒ Å?ÇÊÕôÈ?ÏÅ ÎÂÁòÁ××áÐÜ ÐæÄ?Ñ?, Ñ?Ñ? ÉÜÈ? ÖÔÐßÐË ÈÈÅùÎþÌ- Áç Ë÷ÏûÐêÏÅÀä ÎÂÁòÁ××áÐË ÑðÎï ×áÄé. ÍÊÕ?ÈÃÖ? ÇÞÁçÈ? Ñæ ÇÞÁç Å?ÇÊÕôÈ?ÏÅ ÅàÄéÈù ÐêÍÔ ×ÑÇÞÌÌÍÊÈ? Í××ð×ßÄÒ Ë÷ÏûÐêÏÅÀä ÎÂÁòÁ××áÐË ÑæÁòÐ?×è Å?ÇÊÕôÈ? Á××áÐË Ê?Àö×ßÑ? ÈÆÆ?.

ÍÊÕ?ÈÃÖ? ÇÞÁçÄÒ CGI ÍÊÕ?ÈÃÖ?È? ÐëÌÊ×âÆ? Å?É?ÁûÐË Ð?×á ÏûÅÅÐÜÑ? Ì-É?È? Í××ð×ßÄÒ ÅÏÎØ ÀøÌã Ë÷Ïû×ßÁòÐ?×äÐÜ ÎÖÄäÐË ÑæÐ××ßÆ?. ÌãÅÅÏÝ ØÏÐÂÌÊÈùÏÅÌ- ÓæÐ?Ø-ÀÅ ÎØÅ×ÐæÀý, ÌÃÀø×á ÈåÐ?ÐÜÏìÐ× ÉöÉÐÈÇÞ Ë÷Ïû×ßÈù ÊÈÎØË? É?Ñ?ÀÅ ÅÙ Ì? ÐæÄé.

top

ScriptLogBuffer Ñ?ÍÓÎþ

ÌÃÈý:ÍÊÕ?ÈÃÖ? ÇÞÁçÏÅ ÁòÇß×â PUT Ø?ÐÊ POST ÏôÓËÐ× ÓæÄûÇ?
É?É:ScriptLogBuffer bytes
ÁòÊËÀ?:ScriptLogBuffer 1024
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Base
È?Åò:mod_cgi, mod_cgid

Õ? ÃËÏûÐË ÉîÎÖÌ- ÇÞÁçÖÔÐßÐÜ ÃÚÉ? ËÅÈ? ÔÏÑ?ÄÒ ×?Ë?ÐË ÈÇÁòÐ?×è ÖÔÐßÏÅ ÁòÇß×â PUT Ø?ÐÊ POST ÃËÏûÐ× Õ?ÁòÈ? Ñ?×á×áÄé. ÁòÊËÐ?ÐÈÇÞ 1024 ÉéÐÜÖ?ÁþÑ? ÇÞÁçÏÅ ÁòÇß×ßÑ?ÈÈ, ÐÜ Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? Ì?Ñ?×â Ì? ÐæÄé.

top

ScriptLogLength Ñ?ÍÓÎþ

ÌÃÈý:CGI ÍÊÕ?ÈÃÖ? ÇÞÁçÖÔÐßÐ× Õ?Áò Ñ?×á
É?É:ScriptLogLength bytes
ÁòÊËÀ?:ScriptLogLength 10385760
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Base
È?Åò:mod_cgi, mod_cgid

ScriptLogLengthÄÒ CGI ÍÊÕ?ÈÃÖ? ÇÞÁçÖÔÐßÐ× Õ?ÁòÈ? Ñ?×á×áÄé. CGI ÏÐÇ?ÀÅ ÉïË×âÆ?ÈÆÄé (È?Å÷ ÏôÓË ×üÄ?, È?Å÷ ÍÊÕ?ÈÃÖ? ÓòÇÒ Åþ) ÈÉÐÊ Ñ?ÊÈÀÅ ÇÞÁçÏÅ ÁòÇßÅ×ÁòÆ?É?ÏÅ ÖÔÐßÐÜ ÈÕÏü ÔÏÑ? Ì? ÐæÄé. ÖÔÐßÐÜ É?×áØ? ÔÏÑ?ÄÒ É?Ñ?È? ÈÇÁòÐ?×è ÐÜ Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ? CGI ÇÞÁçÖÔÐßÐ× ÓæÄû ÖÔÐßÕ?ÁòÈ? ÌÃÑ?×áÄé. ÖÔÐßÐ× Õ?ÁòÀÅ ÌÃÑ?×á À?ÐË ÃáÐÈÈù Ä? ÐÜË? Ñ?ÊÈÈ? ÁòÇß×ßÑ?ÎÚÄÒÄé.

ÀÅÄÙ×á Î?Îþ:  en  |  ja  |  ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.