blob: b66eec676b3fd7858057b908a423493dc303139a [file] [log] [blame]
<?xml version="1.0" encoding='EUC-KR' ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 151408:1673563 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modulesynopsis metafile="mod_actions.xml.meta">
<name>mod_actions</name>
<description>ÀÌ ¸ðµâÀº ¹Ìµð¾îÁ¾·ù³ª ¿äû¸Þ¼­µå¿¡ µû¶ó CGI
½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.</description>
<status>Base</status>
<sourcefile>mod_actions.c</sourcefile>
<identifier>actions_module</identifier>
<summary>
<p>ÀÌ ¸ðµâ¿¡´Â µÎ°¡Áö Áö½Ã¾î°¡ ÀÖ´Ù. <directive
module="mod_actions">Action</directive> Áö½Ã¾î´Â ¿äûÇÏ´Â
ÆÄÀÏÀÇ MIME content type¿¡ µû¶ó CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.
<directive module="mod_actions">Script</directive> Áö½Ã¾î´Â
¿äûÀÌ Æ¯Á¤ ¸Þ¼­µå¸¦ »ç¿ëÇÒ °æ¿ì CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.
±×·¡¼­ ÆÄÀÏÀ» ó¸®ÇÏ´Â ½ºÅ©¸³Æ®¸¦ ¸Å¿ì ½±°Ô ½ÇÇàÇÒ ¼ö ÀÖ´Ù.</p>
</summary>
<seealso><module>mod_cgi</module></seealso>
<seealso><a href="../howto/cgi.html">CGI·Î µ¿Àû ÆäÀÌÁö »ý¼º</a></seealso>
<seealso><a href="../handler.html">¾ÆÆÄÄ¡¿¡¼­ Çڵ鷯 »ç¿ë</a></seealso>
<directivesynopsis>
<name>Action</name>
<description>ƯÁ¤ Çڵ鷯³ª content-type¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
»ç¿ëÇÑ´Ù</description>
<syntax>Action <var>action-type</var> <var>cgi-script</var> [virtual]</syntax>
<contextlist>
<context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context>
</contextlist>
<override>FileInfo</override>
<compatibility><code>virtual</code> ¼öÁ¤ÀÚ¿Í Çڵ鷯´Â ¾ÆÆÄÄ¡
2.1¶§ Ãß°¡µÇ¾ú´Ù</compatibility>
<usage>
<p>ÀÌ Áö½Ã¾î´Â ¿äûÀÌ <var>action-type</var>À̸é
<var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼­¹ö¿¡ Ãß°¡ÇÑ´Ù.
<var>cgi-script</var>´Â <directive
module="mod_alias">ScriptAlias</directive>³ª <directive
module="mod_mime">AddHandler</directive>¸¦ »ç¿ëÇÏ¿© CGI
½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù.
<var>action-type</var>¿¡´Â <a
href="../handler.html">Çڵ鷯</a>³ª MIME content typeÀ»
»ç¿ëÇÒ ¼ö ÀÖ´Ù. ÀÌ Áö½Ã¾î´Â <code>PATH_INFO</code>¿Í
<code>PATH_TRANSLATED</code> CGI Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ
¹®¼­ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù. <code>REDIRECT_HANDLER</code>
º¯¼ö·Î ƯÁ¤ ¿äû¿¡ »ç¿ëÇÒ Çڵ鷯¸¦ Àü´ÞÇÑ´Ù.</p>
<example><title>¿¹Á¦</title>
# ƯÁ¤ MIME content typeÀÇ ÆÄÀÏ ¿äû:<br />
Action image/gif /cgi-bin/images.cgi<br />
<br />
# ƯÁ¤ÇÑ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏ<br />
AddHandler my-file-type .xyz<br />
Action my-file-type /cgi-bin/program.cgi<br />
</example>
<p>ù¹ø° ¿¹¿¡¼­ MIME content typeÀÌ <code>image/gif</code>ÀÎ
ÆÄÀÏÀ» ¿äûÇϸé ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/images.cgi</code>°¡
ó¸®ÇÑ´Ù.</p>
<p>µÎ¹ø° ¿¹¿¡¼­ È®ÀåÀÚ°¡ <code>.xyz</code>ÀÎ ÆÄÀÏÀ» ¿äûÇϸé
ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/program.cgi</code>°¡
ó¸®ÇÑ´Ù.</p>
<p>In the second example, requests for files with a file extension of
<code>.xyz</code> are handled instead by the specified cgi script
<code>/cgi-bin/program.cgi</code>.</p>
<p>¼±ÅÃÀûÀÎ <code>virtual</code> ¼öÁ¤ÀÚ´Â ¿äûÇÑ ÆÄÀÏÀÌ
½ÇÁ¦·Î Á¸ÀçÇÏ´ÂÁö °Ë»çÇÏÁö ¾Êµµ·Ï ÇÑ´Ù. ¿¹¸¦ µé¾î, °¡»óÀÇ
À§Ä¡¿¡ <directive>Action</directive> Áö½Ã¾î¸¦ »ç¿ëÇÏ·Á´Â
°æ¿ì À¯¿ëÇÏ´Ù.</p>
<example><title>¿¹Á¦</title>
&lt;Location /news&gt;<br />
<indent>
SetHandler news-handler<br />
Action news-handler /cgi-bin/news.cgi virtual<br />
</indent>
&lt;/Location&gt;
</example>
</usage>
<seealso><directive module="mod_mime">AddHandler</directive></seealso>
</directivesynopsis>
<directivesynopsis>
<name>Script</name>
<description>ƯÁ¤ ¿äû¸Þ¼­µå¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
»ç¿ëÇÑ´Ù.</description>
<syntax>Script <var>method</var> <var>cgi-script</var></syntax>
<contextlist>
<context>server config</context><context>virtual host</context>
<context>directory</context></contextlist>
<usage>
<p>ÀÌ Áö½Ã¾î´Â ÆÄÀÏÀ» <var>method</var> ¸Þ¼­µå¸¦ »ç¿ëÇÏ¿©
¿äûÇϸé <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼­¹ö¿¡
Ãß°¡ÇÑ´Ù. <var>cgi-script</var>´Â <directive
module="mod_alias">ScriptAlias</directive>³ª <directive
module="mod_mime">AddHandler</directive>¸¦ »ç¿ëÇÏ¿© CGI
½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù. ÀÌ Áö½Ã¾î´Â
<code>PATH_INFO</code>¿Í <code>PATH_TRANSLATED</code> CGI
Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ ¹®¼­ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù.</p>
<note>
¾î¶² ¸Þ¼­µå À̸§ÀÌ¶óµµ »ç¿ëÇÒ ¼ö ÀÖ´Ù. <strong>¸Þ¼­µå À̸§Àº
´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÑ´Ù.</strong> ±×·¡¼­ <code>Script PUT</code>°ú
<code>Script put</code>Àº ¿ÏÀüÈ÷ ´Ù¸£´Ù.
</note>
<p><directive>Script</directive> ¸í·É¾î´Â ±âº»ÀûÀÎ Çൿ¸¸À»
ó¸®ÇÔÀ» ÁÖÀÇÇ϶ó. CGI ½ºÅ©¸³Æ®°¡ ºÒ¸®°Å³ª, ¿äûÇÑ ¸Þ¼­µå¸¦
¾Ë¾Æ¼­ ó¸®ÇÒ ¼ö ÀÖ´Â ¸®¼Ò½ºÀÇ °æ¿ì ±×´ë·Î ó¸®ÇÑ´Ù.
<code>GET</code> ¸Þ¼­µåÀÇ <directive>Script</directive>´Â
ÁúÀǾƱԸÕÆ®°¡ ÀÖÀ»¶§¸¸ (<em>¿¹</em>, foo.html?hi) »ç¿ëÇÔÀ»
ÁÖÀÇÇ϶ó. ÁúÀǾƱԸÕÆ®°¡ ¾ø´Ù¸é Á¤»óÀûÀ¸·Î ¿äûÀ» ó¸®ÇÑ´Ù.</p>
<example><title>¿¹Á¦</title>
# &lt;ISINDEX&gt;½Ä °Ë»öÀ» À§ÇØ<br />
Script GET /cgi-bin/search<br />
<br />
# CGI PUT Çڵ鷯<br />
Script PUT /~bob/put.cgi<br />
</example>
</usage>
</directivesynopsis>
</modulesynopsis>