summaryrefslogtreecommitdiff
path: root/docs/manual/mod/directive-dict.xml.ko
blob: 057cfbdb5447065eba853abf254aa29c1227f755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 151408:420990 (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.
-->

<manualpage metafile="directive-dict.xml.meta">

  <title>Áö½Ã¾î¸¦ ¼³¸íÇϴµ¥ »ç¿ëÇÑ ¿ë¾îµé</title>

<summary>
    <p>ÀÌ ¹®¼­´Â ¾ÆÆÄÄ¡ <a href="directives.html">¼³Á¤
    Áö½Ã¾î</a>¸¦ ¼³¸íÇϴµ¥ »ç¿ëÇÑ ¿ë¾îµéÀ» ¼³¸íÇÑ´Ù.</p>
</summary>
<seealso><a href="../configuring.html">¼³Á¤ÆÄÀÏ</a></seealso>

<section id="Description"><title>¼³¸í (Description)</title>

<p>Áö½Ã¾îÀÇ ¸ñÀû¿¡ ´ëÇÑ °£´ÜÇÑ ¼³¸í.</p>
</section>

<section id="Syntax"><title>¹®¹ý (Syntax)</title>

    <p>¼³Á¤ÆÄÀÏ¿¡¼­ »ç¿ëÇÒ Áö½Ã¾îÀÇ Çü½ÄÀ» ¾Ë·ÁÁØ´Ù. ÀÌ ¹®¹ýÀº
    Áö½Ã¾î¸¶´Ù ¸Å¿ì ´Ù¸£¸ç, Áö½Ã¾î¸¦ Á¤ÀÇÇÒ ¶§¸¶´Ù ÀÚ¼¼È÷ ¼³¸íÇÑ´Ù.
    ÀϹÝÀûÀ¸·Î Áö½Ã¾î À̸§ µÚ¿¡ °ø¹éÀ¸·Î ±¸ºÐÇÑ ¾Æ±Ô¸ÕÆ®µéÀÌ
    ³ª¿Â´Ù. ¾Æ±Ô¸ÕÆ®°¡ °ø¹éÀ» Æ÷ÇÔÇÑ´Ù¸é ¾Æ±Ô¸ÕÆ®¸¦ ½Öµû¿ÈÇ¥·Î
    ¹­¾î¾ß ÇÑ´Ù. ¼±ÅÃÀûÀÎ ¾Æ±Ô¸ÕÆ®´Â Áß°ýÈ£·Î ¹­´Â´Ù. ¾Æ±Ô¸ÕÆ®°¡
    ¿©·¯ °ªÁß ÇϳªÀÏ °æ¿ì °ªµéÀ» ¼öÁ÷¸·´ë "|"·Î ±¸ºÐÇÑ´Ù.
    ¹®ÀÚ±×´ë·Î »ç¿ëÇÒ ºÎºÐÀº ±âº» ¹®ÀÚü·Î ¾²°í, ´ëüÇÒ ¾Æ±Ô¸ÕÆ®´Â
    <em>°­Á¶ÇÑ´Ù</em>. ¾Æ±Ô¸ÕÆ® °³¼ö°¡ Á¤ÇØÁöÁö¾ÊÀº Áö½Ã¾î´Â
    ¸¶Áö¸· ¾Æ±Ô¸ÕÆ®°¡ ¹Ýº¹µÊÀ» ³ªÅ¸³»´Â "..."À¸·Î ³¡³­´Ù.</p>

    <p>Áö½Ã¾î´Â ¸Å¿ì ´Ù¾çÇÑ Á¾·ùÀÇ ¾Æ±Ô¸ÕÆ®¸¦ ¹Þ´Â´Ù. ÀÌÁß ÀÚÁÖ
    »ç¿ëÇÏ´Â °ÍÀº ¾Æ·¡¿Í °°´Ù.</p>

    <dl>
      <dt><em>URL</em></dt>

      <dd><code>http://www.example.com/path/to/file.html</code>°ú
      °°ÀÌ ½ºÅ´(scheme), È£½ºÆ®¸í, ¼±ÅÃÀûÀÎ °æ·Î¸íÀ» Æ÷ÇÔÇÑ
      ¿ÏÀüÇÑ Uniform Resource Locator</dd>

      <dt><em>URL-path</em></dt>

      <dd><code>/path/to/file.html</code>°ú °°ÀÌ <em>url</em>¿¡¼­
      ½ºÅ´°ú È£½ºÆ®¸í µÚ¿¡ ³ª¿À´Â ºÎºÐ. <em>url-path</em>´Â
      ÆÄÀϽýºÅÛ¿¡¼­ º» ½ÃÁ¡ÀÌ ¾Æ´Ñ À¥¿¡¼­ º» ½ÃÁ¡¿¡¼­ÀÇ ÀڷḦ
      ³ªÅ¸³½´Ù.</dd>

      <dt><em>file-path</em></dt>

      <dd><code>/usr/local/apache/htdocs/path/to/file.html</code>°ú
      °°ÀÌ root µð·ºÅ丮·Î ½ÃÀÛÇÏ´Â ÆÄÀϽýºÅÛ»óÀÇ ÆÄÀÏ °æ·Î. µû·Î
      ¾ð±ÞÇÏÁö¾ÊÀ¸¸é, ½½·¡½¬·Î ½ÃÀÛÇÏÁö¾ÊÀº <em>file-path</em>´Â
      <a href="core.html#serverroot">ServerRoot</a>¿¡ »ó´ë°æ·Î·Î
      Ãë±ÞÇÑ´Ù.</dd>

      <dt><em>directory-path</em></dt>

      <dd><code>/usr/local/apache/htdocs/path/to/</code>¿Í °°ÀÌ
      root µð·ºÅ丮·Î ½ÃÀÛÇÏ´Â ÆÄÀϽýºÅÛ»óÀÇ µð·ºÅ丮 °æ·Î.</dd>

      <dt><em>filename</em></dt>

      <dd><code>file.html</code>°ú °°ÀÌ °æ·Î Á¤º¸°¡ ¾ø´Â ÆÄÀϸí.</dd>

      <dt><em>regex</em></dt>

      <dd>Perl Çü½ÄÀÇ <a href="../glossary.html#regex">Á¤±ÔÇ¥Çö½Ä(regular
      expression)</a>. Áö½Ã¾î´Â <em>regex</em>·Î ¹«¾ùÀΰ¡¸¦ °Ë»öÇÑ´Ù.</dd>

      <dt><em>extension</em></dt>

      <dd>ÀϹÝÀûÀ¸·Î <em>filename</em>¿¡¼­ ¸¶Áö¸· ¸¶Ä§Ç¥ µÚ¿¡
      ³ª¿À´Â ºÎºÐÀÌ´Ù. ±×·¯³ª ¾ÆÆÄÄ¡´Â ¿©·¯ È®ÀåÀÚ¸¦ ÀνÄÇÒ
      ¼ö Àֱ⶧¹®¿¡, <em>filename</em>¿¡ ¸¶Ä§Ç¥°¡ ¿©·¯°³ Æ÷ÇÔµÈ
      °æ¿ì ¸¶Ä§Ç¥·Î ±¸ºÐµÈ ¸ðµç ºÎºÐÀ» <em>È®ÀåÀÚ(extension)</em>·Î
      ó¸®ÇÑ´Ù. ¿¹¸¦ µé¾î, <em>ÆÄÀϸí</em> <code>file.html.en</code>Àº
      <code>.html</code>°ú <code>.en</code>À̶ó´Â µÎ°¡Áö È®ÀåÀÚ¸¦
      °¡Áø´Ù. ¾ÆÆÄÄ¡ Áö½Ã¾î¿¡¼­ <em>extension</em>¿¡ ÁöÁ¤ÇÑ
      °ª ¾Õ¿¡ ¸¶Ä§Ç¥°¡ À־ µÇ°í ¾ø¾îµµ µÈ´Ù. ¶Ç,
      <em>extension</em>Àº ´ë¼Ò¹®ÀÚ¸¦ °¡¸®Áö¾Ê´Â´Ù.</dd>

      <dt><em>MIME-type</em></dt>

      <dd><code>text/html</code>°ú °°ÀÌ ½½·¡½¬·Î major format
      type°ú minor format type¸¦ ±¸ºÐÇÏ¿© ÆÄÀÏÀÇ Çü½ÄÀ» ¼³¸íÇÏ´Â
      ¹æ½Ä.</dd>

      <dt><em>env-variable</em></dt>

      <dd>¾ÆÆÄÄ¡ ¼³Á¤¿¡¼­ Á¤ÀÇÇÑ <a href="../env.html">ȯ°æº¯¼ö</a>
      À̸§. ¿î¿µÃ¼Á¦ÀÇ È¯°æº¯¼ö¿Í ´Ù¸§À» ÁÖÀÇÇ϶ó. ÀÚ¼¼ÇÑ ³»¿ëÀº
      <a href="../env.html">ȯ°æº¯¼ö ¹®¼­</a>¸¦ Âü°íÇ϶ó.</dd>
    </dl>
</section>

<section id="Default"><title>±âº»°ª (Default)</title>

    <p>Áö½Ã¾î¿¡ ±âº»°ªÀÌ ÀÖ´Ù¸é (<em>¿¹¸¦ µé¾î</em>, ¼³Á¤¿¡¼­
    Áö½Ã¾î¸¦ »ý·«ÇÑ °æ¿ì ¾ÆÆÄÄ¡ À¥¼­¹ö´Â ÀÌ °ªÀ» »ç¿ëÇÑ´Ù.)
    ÀÌ Ç׸ñ¿¡ ³ª¿Â´Ù. ±âº»°ªÀÌ ¾ø´Ù¸é ÀÌ Ç׸ñÀº
    "<em>None</em>"À̾î¾ß ÇÑ´Ù. ±âº»°ªÀÌ ¼­¹ö¿¡ Æ÷ÇÔµÈ ±âº»
    httpd.confÀÇ Áö½Ã¾î °ª°ú ´Ù¸¦ ¼ö ÀÖÀ½À» ÁÖÀÇÇ϶ó.</p>
</section>

<section id="Context"><title>»ç¿ëÀå¼Ò (Context)</title>

    <p>¼­¹öÀÇ ¼³Á¤ÆÄÀÏÁß ¾î´À°÷¿¡¼­ Áö½Ã¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö
    ¾Ë·ÁÁØ´Ù. ´ÙÀ½ °ªµéÀ» ½°Ç¥·Î ±¸ºÐÇÑ ¸ñ·ÏÀÌ´Ù:</p>

    <dl>
      <dt>ÁÖ¼­¹ö¼³Á¤ (server config)</dt>

      <dd>Áö½Ã¾î¸¦ ¼­¹ö ¼³Á¤ÆÄÀÏ¿¡¼­ (<em>¿¹¸¦ µé¾î</em>,
      <code>httpd.conf</code>) »ç¿ëÇÒ ¼ö ÀÖÀ¸³ª, <directive
      module="core" type="section">VirtualHost</directive>³ª
      <directive module="core" type="section">Directory</directive>¿¡¼­
      »ç¿ëÇÒ ¼ö <strong>¾øÀ½À»</strong> ¶æÇÑ´Ù. ÀÌ Áö½Ã¾î´Â
      <code>.htaccess</code> ÆÄÀÏ¿¡¼­µµ »ç¿ëÇÒ ¼ö ¾ø´Ù.</dd>

      <dt>°¡»óÈ£½ºÆ® (virtual host)</dt>

      <dd>Áö½Ã¾î¸¦ ¼­¹ö ¼³Á¤ÆÄÀÏÀÇ <directive module="core"
      type="section">VirtualHost</directive> ¾È¿¡¼­ »ç¿ëÇÒ ¼ö
      ÀÖÀ½À» ¶æÇÑ´Ù.</dd>

      <dt>µð·ºÅ丮 (directory)</dt>

      <dd>Áö½Ã¾î°¡ <a href="../sections.html">¼½¼Ç ¼³Á¤</a>¿¡
      ¼³¸íÇÑ Á¦¾àÀ» µû¸£¸ç, ¼­¹ö ¼³Á¤ÆÄÀÏÀÇ <directive module="core"
      type="section">Directory</directive>, <directive
      type="section" module="core">Location</directive>, <directive
      module="core" type="section">Files</directive>, <directive
      module="mod_proxy" type="section">Proxy</directive>¿¡¼­
      »ç¿ëÇÒ ¼ö ÀÖÀ½À» ¶æÇÑ´Ù.</dd>

      <dt>.htaccess</dt>

      <dd>Áö½Ã¾î¸¦ µð·ºÅ丮<em>º°</em> <code>.htaccess</code>
      ÆÄÀÏ¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖÀ½À» ¶æÇÑ´Ù. ÀÌ Áö½Ã¾î´Â ÇöÀç »ç¿ëÇÏ´Â
      <a href="#Override">overrides</a> °ª¿¡ µû¶ó ¹«½ÃµÉ ¼ö
      ÀÖ´Ù.</dd>
    </dl>

    <p>Áö½Ã¾î´Â ÁöÁ¤µÈ Àå¼Ò¿¡¼­<em>¸¸</em> »ç¿ëÇÒ ¼ö ÀÖ´Ù. ´Ù¸¥
    °÷¿¡¼­ »ç¿ëÇÏ¸é ¼³Á¤¿À·ù°¡ ¹ß»ýÇÏ°í ¼­¹ö´Â ºÎºÐ¿¡ ´ëÇÑ ¿äûÀ» 
    ¿Ã¹Ù·Î ó¸®ÇÏÁö ¸øÇϰųª ÀÛµ¿ÀÌ, <em>¿¹¸¦ µé¾î</em> ½ÃÀÛÁ¶Â÷µµ,
    ¾ÈµÉ ¼ö ÀÖ´Ù.</p>

    <p>Áö½Ã¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Â Àå¼Ò´Â ¿­°ÅÇÑ Àå¼Ò¸¦ ¸ðµÎ
    ºÒ¸°(boolean) ORÇÑ °á°úÀÌ´Ù. Áï,
    "<code>server config, .htaccess</code>"¿¡¼­ °¡´ÉÇÏ´Ù´Â
    Áö½Ã¾î´Â <code>httpd.conf</code> ÆÄÀÏ°ú <code>.htaccess</code>
    ÆÄÀÏ¿¡¼­´Â »ç¿ëÇÒ ¼ö ÀÖÁö¸¸, <directive module="core"
    type="section">Directory</directive>³ª <directive module="core"
    type="section">VirtualHost</directive>¿¡¼­´Â »ç¿ëÇÒ ¼ö ¾ø´Ù.</p>
</section>

<section id="Override"><title>Override ¿É¼Ç (Override)</title>

    <p>ÀÌ Áö½Ã¾î¸¦ <code>.htaccess</code> ÆÄÀÏ¿¡¼­ »ç¿ëÇÏ·Á¸é
    ¾î¶² override ¿É¼ÇÀ» »ç¿ëÇØ¾ß ÇÏ´ÂÁö¸¦ ³ªÅ¸³½´Ù. Áö½Ã¾îÀÇ
    <a href="#Context" >»ç¿ëÀå¼Ò</a>°¡ Áö½Ã¾î¸¦ <code>.htaccess</code>
    ÆÄÀÏ¿¡¼­ »ç¿ëÇÒ ¼ö ¾ø´Ù°í ÇÑ´Ù¸é ¾î¶² »ç¿ëÀå¼Òµµ ³ª¿ÀÁö
    ¾Ê´Â´Ù.</p>

    <p>Overrides´Â <directive
    module="core">AllowOverride</directive> Áö½Ã¾î·Î Áö½ÃÇÏ°í,
    (µð·ºÅ丮 µîÀÇ) ƯÁ¤ ¹üÀ§¿Í ÇÏÀ§ ¹üÀ§¿¡¼­ ´Ù¸¥ <directive
    module="core">AllowOverride</directive> Áö½Ã¾î·Î ´Ù¸¥ °ªÀ»
    ¼³Á¤ÇÏÁö¾Ê¾Ò´Ù¸é ÇÏÀ§ ¹üÀ§¿¡µµ ±×´ë·Î Àû¿ëµÈ´Ù. Áö½Ã¾î ¼³¸í¿¡
    »ç¿ë°¡´ÉÇÑ override À̸§µéÀÌ ³ª¿Â´Ù.</p>
</section>

<section id="Status"><title>»óÅÂ (Status)</title>

    <p>Áö½Ã¾î°¡ ¾ÆÆÄÄ¡ À¥¼­¹ö¿¡ ¾ó¸¶³ª ±ä¹ÐÈ÷ ¹­¿©ÀÖ´ÂÁö¸¦
    ³ªÅ¸³½´Ù. Áï, ±× Áö½Ã¾î³ª ±â´ÉÀ» »ç¿ëÇϱâÀ§ÇØ ¼­¹ö¸¦
    ¸ðµâ°ú °°ÀÌ ´Ù½Ã ÄÄÆÄÀÏÇÒ ÇÊ¿ä°¡ ÀÖÀ» ¼öµµ ÀÖ´Ù.
    °¡´ÉÇÑ °ªÀº ´ÙÀ½°ú °°´Ù:</p>

    <dl>
      <dt>Core</dt>

      <dd>Áö½Ã¾î°¡ "Core" »óŸ¦ °¡Áö¸é, Áö½Ã¾î°¡ ¾ÆÆÄÄ¡ À¥¼­¹ö
      Çٽɺκп¡ ¼ÓÇÏ°í Ç×»ó »ç¿ë°¡´ÉÇÔÀ» ¶æÇÑ´Ù.</dd>

      <dt>MPM</dt>

      <dd>"MPM" »óÅÂÀÎ Áö½Ã¾î´Â <a href="../mpm.html">´ÙÁßó¸®
      ¸ðµâ</a>À» Á¦°øÇÑ´Ù. ÀÌ·± Áö½Ã¾î´Â Áö½Ã¾î ¼³¸í¿¡¼­ <a
      href="#Module">¸ðµâ</a>¿¡ ¿­°ÅµÈ MPMÁß Çϳª¸¦ »ç¿ëÇÒ¶§¸¸
      °¡´ÉÇÏ´Ù.</dd>

      <dt>Base</dt>

      <dd>±âº»ÀûÀ¸·Î ¼­¹ö¿Í °°ÀÌ ÄÄÆÄÀϵǹǷΠÁ÷Á¢ ±¸¼º¿¡¼­
      ¸ðµâÀ» Á¦°ÅÇÏÁö ¾Ê¾Ò´Ù¸é ÀϹÝÀûÀ¸·Î »ç¿ë°¡´ÉÇÑ Ç¥ÁØ ¾ÆÆÄÄ¡
      ¸ðµâÀÌ Á¦°øÇÏ´Â Áö½Ã¾î´Â "Base" »óÅÂÀÌ´Ù.</dd>

      <dt>Extension</dt>

      <dd>¾ÆÆÄÄ¡ ¼­¹ö ¹èÆ÷º»¿¡´Â Æ÷ÇÔµÇÀÖÁö¸¸ º¸Åë ¼­¹ö¿Í °°ÀÌ
      ÄÄÆÄÀϵÇÁö¾Ê´Â ¸ðµâÀÌ Á¦°øÇÏ´Â Áö½Ã¾î´Â "Extension" »óÅÂÀÌ´Ù.
      ÀÌ·± Áö½Ã¾î¸¦ »ç¿ëÇÏ·Á¸é ¼­¹ö ÄÄÆÄÀÏ ±¸¼ºÆÄÀÏÀ» ¼öÁ¤ÇÏ°í
      ¾ÆÆÄÄ¡¸¦ ´Ù½Ã ÄÄÆÄÀÏÇØ¾ß ÇÑ´Ù.</dd>

      <dt>Experimental</dt>

      <dd>"Experimental"Àº Áö½Ã¾î°¡ ¾ÆÆÄÄ¡ ¹èÆ÷º»¿¡ Æ÷ÇÔµÇÀÖÁö¸¸,
      »ç¿ëÀº ÀÚ½ÅÀÇ Ã¥ÀÓÀÓÀ» ³ªÅ¸³½´Ù. Áö½Ã¾î´Â ¹®¼­È­µÇÀÖÁö¸¸,
      ½ÇÁ¦¿Í ´Ù¸¦ ¼ö ÀÖ´Ù. Áö½Ã¾î¸¦ Á¦°øÇÏ´Â ¸ðµâÀº ±âº»ÀûÀ¸·Î
      ¾ÆÆÄÄ¡¿Í °°ÀÌ ÄÄÆÄÀ쵃 ¼öµµ ¾ÈµÉ ¼öµµ ÀÖ´Ù. Áö½Ã¾î¿Í ¸ðµâÀ»
      ¼³¸íÇÏ´Â ¹®¼­ ¾Õ¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö »ìÆìºÁ¶ó.</dd>
    </dl>
</section>

<section id="Module"><title>¸ðµâ (Module)</title>

    <p>´Ü¼øÈ÷ Áö½Ã¾î¸¦ Á¤ÀÇÇÑ ¼Ò½º ¸ðµâ¸íÀ» ¿­°ÅÇÑ´Ù.</p>
</section>

<section id="Compatibility"><title>Áö¿ø (Compatibility)</title>

    <p>Áö½Ã¾î°¡ ¿ø·¡ ¾ÆÆÄÄ¡ ¹öÀü 2 ¹èÆ÷º»ÀÇ ÀϺΰ¡ ¾Æ´Ï¿´´Ù¸é,
    Áö½Ã¾î¸¦ Ãß°¡Çϱ⠽ÃÀÛÇÑ ¹öÀüÀÌ ¿©±â ³ª¿Â´Ù. ¶Ç, ¾î¶²
    Ç÷¡Æû¿¡¼­¸¸ »ç¿ë°¡´ÉÇÑ Áö½Ã¾îµµ ¿©±â ³ª¿Â´Ù.</p>
</section>

</manualpage>