]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_example.xml.ko
a few new translations and up-to-date patches
[apache] / docs / manual / mod / mod_example.xml.ko
1 <?xml version="1.0" encoding="EUC-KR" ?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 1.8 -->
5
6 <!--
7  Copyright 2004 The Apache Software Foundation
8
9  Licensed under the Apache License, Version 2.0 (the "License");
10  you may not use this file except in compliance with the License.
11  You may obtain a copy of the License at
12
13      http://www.apache.org/licenses/LICENSE-2.0
14
15  Unless required by applicable law or agreed to in writing, software
16  distributed under the License is distributed on an "AS IS" BASIS,
17  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  See the License for the specific language governing permissions and
19  limitations under the License.
20 -->
21
22 <modulesynopsis metafile="mod_example.xml.meta">
23
24 <name>mod_example</name>
25 <description>¾ÆÆÄÄ¡ ¸ðµâ API¸¦ ¼³¸íÇÑ´Ù</description>
26 <status>Experimental</status>
27 <sourcefile>mod_example.c</sourcefile>
28 <identifier>example_module</identifier>
29
30 <summary>
31     <p>¾ÆÆÄÄ¡ ¹èÆ÷º» <code>modules/experimental</code> µð·ºÅ丮¿¡
32     Àִ ÆÄÀϵéÀº ¾ÆÆÄÄ¡ API¸¦ »ç¿ëÇÏ¿© ¸ðµâÀ» ÀÛ¼ºÇÏ·Á´Â »ç¶÷µéÀ»
33     µ½±âÀ§ÇÑ ¿¹Á¦´Ù.</p>
34
35     <p><code>mod_example.c</code>´Â ¸ðµç Äݹé(callback) ±¸Á¶¿Í
36     È£Ãâ ¹®¹ýÀ» ¼³¸íÇϴ ÆÄÀÏÀÌ´Ù. ´ç½ÅÀº ¸ðµâ¿¡ ÀÌ ¸ðµç ÄݹéÀ»
37     ±¸ÇöÇÒ ÇÊ¿ä°¡ ¾ø´Ù. »ç½Ç Á¤¹Ý´ë´Ù!</p>
38
39     <p>example ¸ðµâÀº ½ÇÁ¦·Î µ¿ÀÛÇϴ ¸ðµâÀÌ´Ù. ÀÌ ¸ðµâÀ» ¼­¹ö¿¡
40     ¿¬°áÇÏ°í Æ¯Á¤ À§Ä¡¿¡ "example-handler" Çڵ鷯¸¦ ÇÒ´çÇÏ¿©
41     ±×°÷À» ºê¶ó¿ì¡Çϸé example ¸ðµâÀÇ ¿©·¯ ÄݹéÀ» È®ÀÎÇÒ ¼ö
42     ÀÖ´Ù.</p>
43 </summary>
44
45 <section id="compiling"><title>example ¸ðµâ ÄÄÆÄÀÏÇϱâ</title>
46
47     <p>¼­¹ö¿¡ example ¸ðµâÀ» Æ÷ÇÔÇÏ·Á¸é ´ÙÀ½ °úÁ¤À» °ÅÄ£´Ù:</p>
48
49     <ol>
50       <li>
51         <code>--enable-example</code> ¿É¼Ç°ú ÇÔ²²
52         <code>configure</code>¸¦ ½ÇÇàÇÑ´Ù.</li>
53
54       <li>¼­¹ö¸¦ ÄÄÆÄÀÏÇÑ´Ù ("<code>make</code>"¸¦ ½ÇÇàÇÑ´Ù).</li>
55     </ol>
56
57     <p>ÀÚ½ÅÀÌ ¸¸µç ¸ðµâÀ» Ãß°¡ÇÏ·Á¸é:</p>
58
59     <ol type="A">
60       <li><code>cp modules/experimental/mod_example.c
61       modules/new_module/<em>mod_myexample.c</em></code></li>
62
63       <li>ÆÄÀÏÀ» ¼öÁ¤ÇÑ´Ù.</li>
64
65       <li><code>modules/new_module/config.m4</code> ÆÄÀÏÀ» ¸¸µç´Ù.
66         <ol>
67           <li><code>APACHE_MODPATH_INIT(new_module)</code>À»
68             Ãß°¡ÇÑ´Ù.</li>
69           <li><code>modules/experimental/config.m4</code> ÆÄÀÏ¿¡¼­
70             "example"ÀÌ Àִ APACHE_MODULE ÁÙÀ» º¹»çÇؿ´Ù.</li>
71           <li>ù¹ø° ¾Æ±Ô¸ÕÆ® "example"À» <em>myexample</em>·Î
72             º¯°æÇÑ´Ù.</li>
73           <li>µÎ¹ø° ¾Æ±Ô¸ÕÆ® ÀÚ¸®¿¡ ÀÚ½ÅÀÌ ¸¸µç ¸ðµâ¿¡ ´ëÇÑ
74             °£´ÜÇÑ ¼³¸íÀ» Àû´Â´Ù. <code>configure --help</code>¸¦
75             ½ÇÇàÇϸ頿©±â¿¡ ±â·ÏÇÑ ¼³¸íÀ» º¸¿©ÁØ´Ù.</li>
76           <li>¸ðµâÀ» ÄÄÆÄÀÏÇÒ¶§ Æ¯º°ÇÑ C ÄÄÆÄÀÏ·¯ ¿É¼Ç, ¸µÄ¿
77             ¿É¼Ç, ¶óÀ̺귯¸®°¡ ÇÊ¿äÇϸ頰¢°¢ CFLAGS, LDFLAGS,
78             LIBS¿¡ Ãß°¡ÇÑ´Ù. modules µð·ºÅ丮¿¡ Àִ ´Ù¸¥
79             <code>config.m4</code> ÆÄÀϵéÀ» Âü°íÇ϶ó.</li>
80           <li><code>APACHE_MODPATH_FINISH</code>¸¦ Ãß°¡ÇÑ´Ù.</li>
81         </ol>
82       </li>
83
84       <li><code>module/new_module/Makefile.in</code> ÆÄÀÏÀ»
85       ¸¸µç´Ù. ¸ðµâÀ» ÄÄÆÄÀÏÇϴµ¥ Æ¯º°ÇÑ ¸í·É¾î°¡ ÇÊ¿ä¾ø´Ù¸é,
86       ÆÄÀÏ¿¡ <code>include $(top_srcdir)/build/special.mk</code>¸¸
87       À־ µÈ´Ù.</li>
88
89       <li>ÃÖ»óÀ§ µð·ºÅ丮¿¡¼­ ./buildconf ¸¦ ½ÇÇàÇÑ´Ù.</li>
90
91       <li>--enable-myexample ¿É¼ÇÀ» »ç¿ëÇÏ¿© ¼­¹ö¸¦ ÄÄÆÄÀÏÇÑ´Ù</li>
92
93     </ol>
94 </section>
95
96 <section id="using"><title><code>mod_example</code> ¸ðµâ »ç¿ëÇϱâ</title>
97
98     <p>example ¸ðµâÀ» »ç¿ëÇÏ·Á¸é <code>httpd.conf</code> ÆÄÀÏ¿¡
99     ´ÙÀ½°ú °°Àº ¼³Á¤À» Ãß°¡Ç϶ó:</p>
100 <example>
101    &lt;Location /example-info&gt;<br />
102        SetHandler example-handler<br />
103    &lt;/Location&gt;
104 </example>
105
106     <p>¾Æ´Ï¸é <a
107     href="core.html#accessfilename"><code>.htaccess</code></a>
108     ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀ» Ãß°¡ÇÏ°í, ±× À§Ä¡¿¡¼­ "test.example"
109     °°Àº ÆÄÀÏÀ» ¿äûÇ϶ó:</p>
110 <example>
111    AddHandler example-handler .example
112 </example>
113
114     <p>¼­¹ö¸¦ Àç½ÃÀÛÇÑ ÈÄ ÀÌ À§Ä¡¸¦ ºê¶ó¿ì¡Çϸ頾տ¡¼­ ¸»ÇÑ
115     ³»¿ëÀ» º¸°ÔµÉ °ÍÀÌ´Ù.</p>
116 </section>
117
118 <directivesynopsis>
119 <name>Example</name>
120 <description>¾ÆÆÄÄ¡ ¸ðµâ API¸¦ ¼³¸íÇϱâÀ§ÇÑ ¿¹Á¦ Áö½Ã¾î</description>
121 <syntax>Example</syntax>
122 <contextlist><context>server config</context>
123 <context>virtual host</context><context>directory</context>
124 <context>.htaccess</context></contextlist>
125
126 <usage>
127     <p><directive>Example</directive> Áö½Ã¾î´Â example ¸ðµâÀÇ
128     ³»¿ëÇڵ鷯°¡ °£´ÜÇÑ ¹®±¸¸¦ º¸ÀÏÁö ¿©ºÎ¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ Áö½Ã¾î´Â
129     ¾Æ±Ô¸ÕÆ®¸¦ ¹ÞÁö¾Ê´Â´Ù. example ³»¿ëÇڵ鷯¸¦ Àû¿ëÇÑ URL¿¡
130     Á¢¼ÓÇϸ頹®¼­ ¿äûÀ» ¼­ºñ½ºÇϱâÀ§ÇØ ¸ðµâ¾È¿¡ ÇÔ¼öµéÀÌ ¾î¶»°Ô
131     ±×¸®°í ¾î¶² ¼ø¼­·Î ºÒ¸®´ÂÁö ¾Ë ¼ö ÀÖ´Ù. ÀÌ Áö½Ã¾îÀÇ È¿°ú´Â
132     "<code>Example directive declared here: YES/NO</code>"·Î
133     È®ÀÎÇÒ ¼ö ÀÖ´Ù.</p>
134 </usage>
135 </directivesynopsis>
136
137 </modulesynopsis>