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