1 <?xml version="1.0" encoding="EUC-KR"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>mod_actions - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
12 <script src="../style/scripts/prettify.js" type="text/javascript">
15 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
17 <div id="page-header">
18 <p class="menu"><a href="../mod/">¸ðµâ</a> | <a href="../mod/quickreference.html">Áö½Ã¾îµé</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">¿ë¾î</a> | <a href="../sitemap.html">»çÀÌÆ®¸Ê</a></p>
19 <p class="apache">Apache HTTP Server Version 2.5</p>
20 <img alt="" src="../images/feather.gif" /></div>
21 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
23 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.5</a> > <a href="./">¸ðµâ</a></div>
24 <div id="page-content">
25 <div id="preamble"><h1>¾ÆÆÄÄ¡ ¸ðµâ mod_actions</h1>
27 <p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../de/mod/mod_actions.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
28 <a href="../en/mod/mod_actions.html" hreflang="en" rel="alternate" title="English"> en </a> |
29 <a href="../fr/mod/mod_actions.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
30 <a href="../ja/mod/mod_actions.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
31 <a href="../ko/mod/mod_actions.html" title="Korean"> ko </a></p>
33 <div class="outofdate">ÀÌ ¹®¼´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù.
34 ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼¸¦ Âü°íÇϼ¼¿ä.</div>
35 <table class="module"><tr><th><a href="module-dict.html#Description">¼³¸í:</a></th><td>ÀÌ ¸ðµâÀº ¹Ìµð¾îÁ¾·ù³ª ¿äû¸Þ¼µå¿¡ µû¶ó CGI
36 ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.</td></tr>
37 <tr><th><a href="module-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr>
38 <tr><th><a href="module-dict.html#ModuleIdentifier">¸ðµâ¸í:</a></th><td>actions_module</td></tr>
39 <tr><th><a href="module-dict.html#SourceFile">¼Ò½ºÆÄÀÏ:</a></th><td>mod_actions.c</td></tr></table>
42 <p>ÀÌ ¸ðµâ¿¡´Â µÎ°¡Áö Áö½Ã¾î°¡ ÀÖ´Ù. <code class="directive"><a href="#action">Action</a></code> Áö½Ã¾î´Â ¿äûÇÏ´Â
43 ÆÄÀÏÀÇ MIME content type¿¡ µû¶ó CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.
44 <code class="directive"><a href="#script">Script</a></code> Áö½Ã¾î´Â
45 ¿äûÀÌ Æ¯Á¤ ¸Þ¼µå¸¦ »ç¿ëÇÒ °æ¿ì CGI ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.
46 ±×·¡¼ ÆÄÀÏÀ» ó¸®ÇÏ´Â ½ºÅ©¸³Æ®¸¦ ¸Å¿ì ½±°Ô ½ÇÇàÇÒ ¼ö ÀÖ´Ù.</p>
48 <div id="quickview"><h3 class="directives">Áö½Ã¾îµé</h3>
50 <li><img alt="" src="../images/down.gif" /> <a href="#action">Action</a></li>
51 <li><img alt="" src="../images/down.gif" /> <a href="#script">Script</a></li>
55 <li><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code></li>
56 <li><a href="../howto/cgi.html">CGI·Î µ¿Àû ÆäÀÌÁö »ý¼º</a></li>
57 <li><a href="../handler.html">¾ÆÆÄÄ¡¿¡¼ Çڵ鷯 »ç¿ë</a></li>
58 </ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
60 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
61 <div class="directive-section"><h2><a name="Action" id="Action">Action</a> <a name="action" id="action">Áö½Ã¾î</a></h2>
62 <table class="directive">
63 <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>ƯÁ¤ Çڵ鷯³ª content-type¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
65 <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>Action <var>action-type</var> <var>cgi-script</var> [virtual]</code></td></tr>
66 <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory, .htaccess</td></tr>
67 <tr><th><a href="directive-dict.html#Override">Override ¿É¼Ç:</a></th><td>FileInfo</td></tr>
68 <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr>
69 <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_actions</td></tr>
70 <tr><th><a href="directive-dict.html#Compatibility">Áö¿ø:</a></th><td><code>virtual</code> ¼öÁ¤ÀÚ¿Í Çڵ鷯´Â ¾ÆÆÄÄ¡
71 2.1¶§ Ãß°¡µÇ¾ú´Ù</td></tr>
73 <p>ÀÌ Áö½Ã¾î´Â ¿äûÀÌ <var>action-type</var>À̸é
74 <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼¹ö¿¡ Ãß°¡ÇÑ´Ù.
75 <var>cgi-script</var>´Â <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>³ª <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code>¸¦ »ç¿ëÇÏ¿© CGI
76 ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù.
77 <var>action-type</var>¿¡´Â <a href="../handler.html">Çڵ鷯</a>³ª MIME content typeÀ»
78 »ç¿ëÇÒ ¼ö ÀÖ´Ù. ÀÌ Áö½Ã¾î´Â <code>PATH_INFO</code>¿Í
79 <code>PATH_TRANSLATED</code> CGI Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ
80 ¹®¼ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù. <code>REDIRECT_HANDLER</code>
81 º¯¼ö·Î ƯÁ¤ ¿äû¿¡ »ç¿ëÇÒ Çڵ鷯¸¦ Àü´ÞÇÑ´Ù.</p>
83 <div class="example"><h3>¿¹Á¦</h3><p><code>
84 # ƯÁ¤ MIME content typeÀÇ ÆÄÀÏ ¿äû:<br />
85 Action image/gif /cgi-bin/images.cgi<br />
87 # ƯÁ¤ÇÑ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏ<br />
88 AddHandler my-file-type .xyz<br />
89 Action my-file-type /cgi-bin/program.cgi<br />
92 <p>ù¹ø° ¿¹¿¡¼ MIME content typeÀÌ <code>image/gif</code>ÀÎ
93 ÆÄÀÏÀ» ¿äûÇϸé ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/images.cgi</code>°¡
96 <p>µÎ¹ø° ¿¹¿¡¼ È®ÀåÀÚ°¡ <code>.xyz</code>ÀÎ ÆÄÀÏÀ» ¿äûÇϸé
97 ÁöÁ¤ÇÑ cgi ½ºÅ©¸³Æ® <code>/cgi-bin/program.cgi</code>°¡
99 <p>In the second example, requests for files with a file extension of
100 <code>.xyz</code> are handled instead by the specified cgi script
101 <code>/cgi-bin/program.cgi</code>.</p>
103 <p>¼±ÅÃÀûÀÎ <code>virtual</code> ¼öÁ¤ÀÚ´Â ¿äûÇÑ ÆÄÀÏÀÌ
104 ½ÇÁ¦·Î Á¸ÀçÇÏ´ÂÁö °Ë»çÇÏÁö ¾Êµµ·Ï ÇÑ´Ù. ¿¹¸¦ µé¾î, °¡»óÀÇ
105 À§Ä¡¿¡ <code class="directive">Action</code> Áö½Ã¾î¸¦ »ç¿ëÇÏ·Á´Â
108 <div class="example"><h3>¿¹Á¦</h3><p><code>
109 <Location /news><br />
110 <span class="indent">
111 SetHandler news-handler<br />
112 Action news-handler /cgi-bin/news.cgi virtual<br />
119 <li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code></li>
122 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
123 <div class="directive-section"><h2><a name="Script" id="Script">Script</a> <a name="script" id="script">Áö½Ã¾î</a></h2>
124 <table class="directive">
125 <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>ƯÁ¤ ¿äû¸Þ¼µå¿¡ ´ëÇØ CGI ½ºÅ©¸³Æ®¸¦
127 <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>Script <var>method</var> <var>cgi-script</var></code></td></tr>
128 <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory</td></tr>
129 <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr>
130 <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_actions</td></tr>
132 <p>ÀÌ Áö½Ã¾î´Â ÆÄÀÏÀ» <var>method</var> ¸Þ¼µå¸¦ »ç¿ëÇÏ¿©
133 ¿äûÇϸé <var>cgi-script</var>¸¦ ½ÇÇàÇÏ´Â ÇൿÀ» ¼¹ö¿¡
134 Ãß°¡ÇÑ´Ù. <var>cgi-script</var>´Â <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>³ª <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code>¸¦ »ç¿ëÇÏ¿© CGI
135 ½ºÅ©¸³Æ®·Î ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ URL°æ·ÎÀÌ´Ù. ÀÌ Áö½Ã¾î´Â
136 <code>PATH_INFO</code>¿Í <code>PATH_TRANSLATED</code> CGI
137 Ç¥ÁØ È¯°æº¯¼ö·Î ¿äûÇÑ ¹®¼ÀÇ URL°ú ÆÄÀÏ°æ·Î¸¦ Àü´ÞÇÑ´Ù.</p>
140 ¾î¶² ¸Þ¼µå À̸§ÀÌ¶óµµ »ç¿ëÇÒ ¼ö ÀÖ´Ù. <strong>¸Þ¼µå À̸§Àº
141 ´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÑ´Ù.</strong> ±×·¡¼ <code>Script PUT</code>°ú
142 <code>Script put</code>Àº ¿ÏÀüÈ÷ ´Ù¸£´Ù.
145 <p><code class="directive">Script</code> ¸í·É¾î´Â ±âº»ÀûÀÎ Çൿ¸¸À»
146 ó¸®ÇÔÀ» ÁÖÀÇÇ϶ó. CGI ½ºÅ©¸³Æ®°¡ ºÒ¸®°Å³ª, ¿äûÇÑ ¸Þ¼µå¸¦
147 ¾Ë¾Æ¼ ó¸®ÇÒ ¼ö ÀÖ´Â ¸®¼Ò½ºÀÇ °æ¿ì ±×´ë·Î ó¸®ÇÑ´Ù.
148 <code>GET</code> ¸Þ¼µåÀÇ <code class="directive">Script</code>´Â
149 ÁúÀǾƱԸÕÆ®°¡ ÀÖÀ»¶§¸¸ (<em>¿¹</em>, foo.html?hi) »ç¿ëÇÔÀ»
150 ÁÖÀÇÇ϶ó. ÁúÀǾƱԸÕÆ®°¡ ¾ø´Ù¸é Á¤»óÀûÀ¸·Î ¿äûÀ» ó¸®ÇÑ´Ù.</p>
152 <div class="example"><h3>¿¹Á¦</h3><p><code>
153 # <ISINDEX>½Ä °Ë»öÀ» À§ÇØ<br />
154 Script GET /cgi-bin/search<br />
156 # CGI PUT Çڵ鷯<br />
157 Script PUT /~bob/put.cgi<br />
162 <div class="bottomlang">
163 <p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../de/mod/mod_actions.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> |
164 <a href="../en/mod/mod_actions.html" hreflang="en" rel="alternate" title="English"> en </a> |
165 <a href="../fr/mod/mod_actions.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
166 <a href="../ja/mod/mod_actions.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
167 <a href="../ko/mod/mod_actions.html" title="Korean"> ko </a></p>
168 </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />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 <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
169 <script type="text/javascript"><!--//--><![CDATA[//><!--
170 var comments_shortname = 'httpd';
171 var comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_actions.html';
173 if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
174 d.write('<div id="comments_thread"><\/div>');
175 var s = d.createElement('script');
176 s.type = 'text/javascript';
178 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
179 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
182 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
184 })(window, document);
185 //--><!]]></script></div><div id="footer">
186 <p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
187 <p class="menu"><a href="../mod/">¸ðµâ</a> | <a href="../mod/quickreference.html">Áö½Ã¾îµé</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">¿ë¾î</a> | <a href="../sitemap.html">»çÀÌÆ®¸Ê</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
188 if (typeof(prettyPrint) !== 'undefined') {