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

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

ÎÖÖÔÔÅ È?Åò mod_actions

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

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

ÏôÎð

ÐÜ È?ÅòÏÅÄÒ ÅÞÀÅÑ? Ñ?ÍÓÎþÀÅ ÐæÄé. Action Ñ?ÍÓÎþÄÒ ÏôÓË×ßÄÒ ÖÔÐßÐ× MIME content typeÏÅ Å?Æ? CGI ÍÊÕ?ÈÃÖ?È? Í××ð×áÄé. Script Ñ?ÍÓÎþÄÒ ÏôÓËÐÜ Ö?Ñ? ÈîÌ-ÅõÈ? Ë÷Ïû×â ÀöÏü CGI ÍÊÕ?ÈÃÖ?È? Í××ð×áÄé. ÁçÇÅÌ- ÖÔÐßÐË ÓÃÈ?×ßÄÒ ÍÊÕ?ÈÃÖ?È? ÈÕÏü ÍÁÀä Í××ð×â Ì? ÐæÄé.

Ñ?ÍÓÎþÅù

Ò?Àý

top

Action Ñ?ÍÓÎþ

ÌÃÈý:Ö?Ñ? ×êÅùÇ?Ã? content-typeÏÅ Äû×è CGI ÍÊÕ?ÈÃÖ?È? Ë÷Ïû×áÄé
É?É:Action action-type cgi-script [virtual]
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?, directory, .htaccess
Override ÏÙÌ×:FileInfo
Ë?ÕÒ:Base
È?Åò:mod_actions
Ñ?Ï?:virtual Ì?Ñ?ÐêÏÝ ×êÅùÇ?ÄÒ ÎÖÖÔÔÅ 2.1Æ? ÓïÀÅÅ×Î?Äé

ÐÜ Ñ?ÍÓÎþÄÒ ÏôÓËÐÜ action-typeÐÜÈù cgi-scriptÈ? Í××ð×ßÄÒ ×ðÅÏÐË Ì-É?ÏÅ ÓïÀÅ×áÄé. cgi-scriptÄÒ ScriptAliasÃ? AddHandlerÈ? Ë÷Ïû×ßÏ? CGI ÍÊÕ?ÈÃÖ?ÇÞ Ñ?Ñ?×á È?ÌâÍÊÐ× URLÀöÇÞÐÜÄé. action-typeÏÅÄÒ ×êÅùÇ?Ã? MIME content typeÐË Ë÷Ïû×â Ì? ÐæÄé. ÐÜ Ñ?ÍÓÎþÄÒ PATH_INFOÏÝ PATH_TRANSLATED CGI ×?Ñè Ø?ÀöÊ?Ì?ÇÞ ÏôÓË×á É?Ì-Ð× URLÀ? ÖÔÐßÀöÇÞÈ? Ð?Äî×áÄé. REDIRECT_HANDLER Ê?Ì?ÇÞ Ö?Ñ? ÏôÓËÏÅ Ë÷Ïû×â ×êÅùÇ?È? Ð?Äî×áÄé.

ÏÉÑ?

# Ö?Ñ? MIME content typeÐ× ÖÔÐß ÏôÓË:
Action image/gif /cgi-bin/images.cgi

# Ö?Ñ?×á Ø?ÐõÐêÈ? ÀÅÑ? ÖÔÐß
AddHandler my-file-type .xyz
Action my-file-type /cgi-bin/program.cgi

ÓÉÉ?ÒÀ ÏÉÏÅÌ- MIME content typeÐÜ image/gifÐÞ ÖÔÐßÐË ÏôÓË×ßÈù Ñ?Ñ?×á cgi ÍÊÕ?ÈÃÖ? /cgi-bin/images.cgiÀÅ ÓÃÈ?×áÄé.

ÅÞÉ?ÒÀ ÏÉÏÅÌ- Ø?ÐõÐêÀÅ .xyzÐÞ ÖÔÐßÐË ÏôÓË×ßÈù Ñ?Ñ?×á cgi ÍÊÕ?ÈÃÖ? /cgi-bin/program.cgiÀÅ ÓÃÈ?×áÄé.

In the second example, requests for files with a file extension of .xyz are handled instead by the specified cgi script /cgi-bin/program.cgi.

ÌÁÕÓÐ?ÐÞ virtual Ì?Ñ?ÐêÄÒ ÏôÓË×á ÖÔÐßÐÜ Í×Ñ?ÇÞ ÑÈÐ÷×ßÄÒÑ? ÀÛË÷×ßÑ? ÎÚÅÅÇß ×áÄé. ÏÉÈ? ÅùÎþ, ÀÅË?Ð× Ð?ÔÅÏÅ Action Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÇÑÄÒ ÀöÏü Ð?Ïû×ßÄé.

ÏÉÑ?

<Location /news>
SetHandler news-handler
Action news-handler /cgi-bin/news.cgi virtual
</Location>

Ò?Àý

top

Script Ñ?ÍÓÎþ

ÌÃÈý:Ö?Ñ? ÏôÓËÈîÌ-ÅõÏÅ Äû×è CGI ÍÊÕ?ÈÃÖ?È? Ë÷Ïû×áÄé.
É?É:Script method cgi-script
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?, directory
Ë?ÕÒ:Base
È?Åò:mod_actions

ÐÜ Ñ?ÍÓÎþÄÒ ÖÔÐßÐË method ÈîÌ-ÅõÈ? Ë÷Ïû×ßÏ? ÏôÓË×ßÈù cgi-scriptÈ? Í××ð×ßÄÒ ×ðÅÏÐË Ì-É?ÏÅ ÓïÀÅ×áÄé. cgi-scriptÄÒ ScriptAliasÃ? AddHandlerÈ? Ë÷Ïû×ßÏ? CGI ÍÊÕ?ÈÃÖ?ÇÞ Ñ?Ñ?×á È?ÌâÍÊÐ× URLÀöÇÞÐÜÄé. ÐÜ Ñ?ÍÓÎþÄÒ PATH_INFOÏÝ PATH_TRANSLATED CGI ×?Ñè Ø?ÀöÊ?Ì?ÇÞ ÏôÓË×á É?Ì-Ð× URLÀ? ÖÔÐßÀöÇÞÈ? Ð?Äî×áÄé.

ÎþÆ ÈîÌ-Åõ ÐÜÈ?ÐÜÆ?ÅÅ Ë÷Ïû×â Ì? ÐæÄé. ÈîÌ-Åõ ÐÜÈ?ÐÊ ÄûÌâÉ?ÐêÈ? ÁÈÊÀ×áÄé. ÁçÇÅÌ- Script PUTÀ? Script putÐÊ ÏßÐ?Ø? ÄéÈ?Äé.

Script ÈýÇÙÎþÄÒ ÁòÊËÐ?ÐÞ ×ðÅÏÈÈÐË ÓÃÈ?×äÐË ÑæÐ××ßÆ?. CGI ÍÊÕ?ÈÃÖ?ÀÅ ÊâÈ?ÀÕÃ?, ÏôÓË×á ÈîÌ-ÅõÈ? ÎÛÎÖÌ- ÓÃÈ?×â Ì? ÐæÄÒ È?ÌâÍÊÐ× ÀöÏü ÁçÄûÇÞ ÓÃÈ?×áÄé. GET ÈîÌ-ÅõÐ× ScriptÄÒ Ñ?Ð×ÎÖÁäÈåÖ?ÀÅ ÐæÐËÆ?ÈÈ (ÏÉ, foo.html?hi) Ë÷Ïû×äÐË ÑæÐ××ßÆ?. Ñ?Ð×ÎÖÁäÈåÖ?ÀÅ Î?ÄéÈù Ñ?Ë?Ð?ÐÈÇÞ ÏôÓËÐË ÓÃÈ?×áÄé.

ÏÉÑ?

# <ISINDEX>ÍÔ ÀÛË?ÐË Ð?×è
Script GET /cgi-bin/search

# CGI PUT ×êÅùÇ?
Script PUT /~bob/put.cgi

ÀÅÄÙ×á Î?Îþ:  de  |  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.