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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
|
<?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: 105989 -->
<!--
Copyright 2004 The Apache Software Foundation
Licensed 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="auth.xml.meta">
<parentdocument href="./">How-To / Tutorials</parentdocument>
<title>ÀÎÁõ(Authentication), ±ÇÇѺο©(Authorization),
Á¢±ÙÁ¦¾î(Access Control)</title>
<summary>
<p>ÀÎÁõ(authentication)Àº ÀÚ½ÅÀÌ ´©±¸¶ó°í ÁÖÀåÇÏ´Â »ç¶÷À»
È®ÀÎÇÏ´Â ÀýÂ÷ÀÌ´Ù. ±ÇÇѺο©(authorization)´Â °¡°í ½ÍÀº °÷À¸·Î
°¡µµ·Ï ȤÀº ¿øÇÏ´Â Á¤º¸¸¦ ¾òµµ·Ï Çã¿ëÇÏ´Â °úÁ¤ÀÌ´Ù.</p>
</summary>
<section id="related"><title>°ü·Ã ¸ðµâ°ú Áö½Ã¾î</title>
<related>
<modulelist>
<module>mod_auth_basic</module>
<module>mod_authn_file</module>
<module>mod_authz_groupfile</module>
<module>mod_authz_host</module>
</modulelist>
<directivelist>
<directive module="mod_authz_host">Allow</directive>
<directive module="mod_authz_groupfile">AuthGroupFile</directive>
<directive module="core">AuthName</directive>
<directive module="core">AuthType</directive>
<directive module="mod_authn_file">AuthUserFile</directive>
<directive module="mod_authz_host">Deny</directive>
<directive module="core">Options</directive>
<directive module="core">Require</directive>
</directivelist>
</related>
</section>
<section id="introduction"><title>¼Ò°³</title>
<p>´ç½ÅÀÇ À¥»çÀÌÆ®¿¡ ÀÖ´Â Á¤º¸°¡ ¼Ò¼öÀÇ »ç¶÷µé¸¸ÀÇ ºñ¹ÐÀ̰ųª
À̵鸸À» À§ÇÑ Á¤º¸¶ó¸é, ÀÌ ±Û¿¡¼ ¼³¸íÇÏ´Â ±â¹ýÀ» »ç¿ëÇÏ¿©
´ç½ÅÀÌ º¸±æ ¿øÇÏ´Â »ç¶÷¸¸ ÆäÀÌÁö¸¦ º¸µµ·Ï ÇÒ ¼ö ÀÖ´Ù.</p>
<p>ÀÌ ±ÛÀº À¥»çÀÌÆ®ÀÇ ÀϺθ¦ º¸È£ÇϱâÀ§ÇØ ¸¹Àº »ç¶÷µéÀÌ
»ç¿ëÇÏ´Â "Ç¥ÁØÀûÀÎ" ¹æ¹ýÀ» ´Ù·é´Ù.</p>
</section>
<section id="theprerequisites"><title>±âº» Áö½Ä</title>
<p>ÀÌ ±Û¿¡¼ ´Ù·ç´Â Áö½Ã¾î´Â ¼¹öÀÇ ÁÖ¼³Á¤ÆÄÀÏ(ÀϹÝÀûÀ¸·Î
<directive module="core" type="section">Directory</directive>
¼½¼Ç)À̳ª µð·ºÅ丮º° ¼³Á¤ÆÄÀÏ(<code>.htaccess</code> ÆÄÀÏ)¿¡¼
»ç¿ëÇÑ´Ù.</p>
<p><code>.htaccess</code> ÆÄÀÏÀ» »ç¿ëÇÏ·Á¸é ÀÌ ÆÄÀÏ¿¡ ÀÖ´Â
ÀÎÁõ Áö½Ã¾î¸¦ Çã¿ëÇϵµ·Ï ¼¹ö¸¦ ¼³Á¤ÇØ¾ß ÇÑ´Ù. À̸¦ À§ÇØ
µð·ºÅ丮º° ¼³Á¤ÆÄÀÏ¿¡ ¾î¶² Áö½Ã¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö¸¦ °áÁ¤ÇÏ´Â
<directive module="core">AllowOverride</directive> Áö½Ã¾î¸¦
»ç¿ëÇÑ´Ù.</p>
<p>¿©±â¼´Â ÀÎÁõÀ» ´Ù·ç±â ¶§¹®¿¡, ´ÙÀ½°ú °°Àº
<code>AllowOverride</code> Áö½Ã¾î°¡ ÇÊ¿äÇÏ´Ù.</p>
<example>
AllowOverride AuthConfig
</example>
<p>ȤÀº Áö½Ã¾î¸¦ Á÷Á¢ ¼¹ö ÁÖ¼³Á¤ÆÄÀÏ¿¡ Àû´Â´Ù¸é, ±× ÆÄÀÏ¿¡
¾²±â ±ÇÇÑÀÌ ¹°·Ð ÀÖ¾î¾ß ÇÑ´Ù.</p>
<p>±×¸®°í º¸È£ÇÒ ÆÄÀÏÀÌ ¾îµðÀÖ´ÂÁö ¾Ë±âÀ§ÇØ ¼¹öÀÇ µð·ºÅ丮
±¸Á¶¿¡ ´ëÇØ Á¶±Ý ¾Ë¾Æ¾ßÇÑ´Ù. ÀÌ ÀÏÀº ¾î·ÆÁö¾Ê°í, Àû´çÇÑ
¶§¿¡ ÀÚ¼¼È÷ ¼³¸íÇÒ °ÍÀÌ´Ù.</p>
</section>
<section id="gettingitworking"><title>±âº»ÀûÀÎ ¼³Á¤Çϱâ</title>
<p>ÀÌÁ¦ ¼¹öÀÇ µð·ºÅ丮¸¦ ¾ÏÈ£·Î º¸È£ÇÏ´Â ±âº»ÀûÀÎ ¹æ¹ýÀ»
¼³¸íÇÑ´Ù.</p>
<p>¸ÕÀú ¾ÏÈ£ÆÄÀÏÀ» ¸¸µé¾î¾ß ÇÑ´Ù. ÀÌ ÆÄÀÏÀº À¥¿¡¼ Á¢±ÙÇÒ
¼ö ¾ø´Â °÷¿¡ ÀÖ¾î¾ß ÇÑ´Ù. ´Ù¸¥»ç¶÷ÀÌ ¾ÏÈ£ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏÁö
¸øÇÏ°ÔÇϱâ À§Çؼ´Ù. ¿¹¸¦ µé¾î, ¹®¼µéÀÌ
<code>/usr/local/apache/htdocs</code>¿¡ ÀÖ´Ù¸é ¾ÏÈ£ÆÄÀÏ(µé)Àº
<code>/usr/local/apache/passwd</code>¿¡ µÐ´Ù.</p>
<p>¾ÆÆÄÄ¡¿¡ Æ÷ÇÔµÈ <a
href="../programs/htpasswd.html">htpasswd</a> µµ±¸¸¦ »ç¿ëÇÏ¿©
¾ÏÈ£ÆÄÀÏÀ» ¸¸µç´Ù. ÀÌ ÇÁ·Î±×·¥Àº ¾ÆÆÄÄ¡¸¦ ¼³Ä¡ÇÑ °÷ÀÇ
<code>bin</code> µð·ºÅ丮¿¡ ÀÖ´Ù. ÆÄÀÏÀ» ¸¸µé·Á¸é ´ÙÀ½°ú
°°ÀÌ ÀÔ·ÂÇÑ´Ù.</p>
<example>
htpasswd -c /usr/local/apache/passwd/passwords rbowen
</example>
<p><code>htpasswd</code>´Â ¾ÏÈ£¸¦ ¹°¾îº¸°í, È®ÀÎÀ» À§ÇØ
¾ÏÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇ϶ó°í ¿äûÇÑ´Ù.</p>
<example>
# htpasswd -c /usr/local/apache/passwd/passwords rbowen<br />
New password: mypassword<br />
Re-type new password: mypassword<br />
Adding password for user rbowen
</example>
<p>¹°·Ð <code>htpasswd</code>ÀÌ ½ÇÇàÆÄÀÏ °æ·Î¿¡ ¾ø´Ù¸é
½ÇÇàÆÄÀÏÀÇ Àüü °æ·Î¸¦ ÀÔ·ÂÇØ¾ß ÇÑ´Ù. ³»°¡ »ç¿ëÇÏ´Â ¼¹ö¿¡¼´Â
<code>/usr/local/apache/bin/htpasswd</code>¿¡ ½ÇÇàÆÄÀÏÀÌ
ÀÖ´Ù.</p>
<p>´ÙÀ½À¸·Î ¼¹ö°¡ ¾ÏÈ£¸¦ ¿äûÇϵµ·Ï ¼³Á¤ÇÏ°í, ¼¹ö¿¡°Ô
¾î¶² »ç¿ëÀÚÀÇ Á¢±ÙÀ» Çã¿ëÇÒÁö ¾Ë·ÁÁà¾ß ÇÑ´Ù.
<code>httpd.conf</code>¸¦ ÆíÁýÇϰųª <code>.htaccess</code>
ÆÄÀÏÀ» »ç¿ëÇÏ¿© ¼³Á¤ÇÑ´Ù. ¿¹¸¦ µé¾î,
<code>/usr/local/apache/htdocs/secret</code> µð·ºÅ丮¸¦
º¸È£ÇÏ·Á¸é, ¾Æ·¡ Áö½Ã¾î¸¦
<code>/usr/local/apache/htdocs/secret/.htaccess</code> ÆÄÀÏÀ̳ª
<code>httpd.conf</code>ÀÇ <Directory
/usr/local/apache/apache/htdocs/secret> ¼½¼Ç¿¡ Àû¾î¾ß
ÇÑ´Ù.</p>
<example>
AuthType Basic<br />
AuthName "Restricted Files"<br />
AuthUserFile /usr/local/apache/passwd/passwords<br />
Require user rbowen
</example>
<p>Áö½Ã¾î¸¦ Çϳª¾¿ »ìÆ캸ÀÚ. <directive
module="core">AuthType</directive> Áö½Ã¾î´Â »ç¿ëÀÚ¸¦ ÀÎÁõÇÒ
¹æ¹ýÀ» ¼±ÅÃÇÑ´Ù. °¡Àå ÀϹÝÀûÀÎ ¹æ¹ýÀº <code>Basic</code>À¸·Î,
<module>mod_auth_basic</module>ÀÌ ±¸ÇöÇÑ´Ù. ±×·¯³ª Basic
ÀÎÁõÀº ºê¶ó¿ìÀú°¡ ¼¹ö·Î ¾ÏÈ£¸¦ ¾ÏÈ£ÈÇÏÁö ¾Ê°í º¸³½´Ù.
±×·¯¹Ç·Î ±â¹Ð ÀڷḦ º¸È£ÇϱâÀ§ÇØ ÀÌ ¹æ¹ýÀ» »ç¿ëÇÏ¸é ¾ÈµÈ´Ù.
¾ÆÆÄÄ¡´Â <code>AuthType Digest</code>¶ó´Â ÀÎÁõ ¹æ¹ýµµ Áö¿øÇÑ´Ù.
ÀÌ ¹æ¹ýÀº <module>mod_auth_digest</module>°¡ ±¸ÇöÇϸç, ¸Å¿ì
¾ÈÀüÇÏ´Ù. °¡Àå Ãֱ٠Ŭ¶óÀ̾ðÆ®µé¸¸ÀÌ Digest ÀÎÁõÀ» Áö¿øÇÑ´Ù°í
ÇÑ´Ù.</p>
<p><directive module="core">AuthName</directive> Áö½Ã¾î´Â
ÀÎÁõ¿¡ »ç¿ëÇÒ <dfn>¿µ¿ª(realm)</dfn>À» ÁöÁ¤ÇÑ´Ù. ¿µ¿ªÀº
µÎ°¡Áö ¿ªÇÒÀ» ÇÑ´Ù. ù¹ø°´Â Ŭ¶óÀ̾ðÆ®°¡ º¸Åë ÀÌ Á¤º¸¸¦
¾ÏÈ£ ´ëÈâ¿¡ º¸¿©ÁØ´Ù. µÎ¹ø°´Â ¿µ¿ª Á¤º¸¸¦ »ç¿ëÇÏ¿©
Ŭ¶óÀ̾ðÆ®°¡ ƯÁ¤ ÀÎÁõ±¸¿ª¿¡ ¾î¶² ¾ÏÈ£¸¦ º¸³¾Áö °áÁ¤ÇÑ´Ù.</p>
<p>¿¹¸¦ µé¾î, ÀÏ´Ü Å¬¶óÀ̾ðÆ®°¡ <code>"Restricted Files"</code>
¿µ¿ª¿¡ ÀÎÁõÀÌ ¼º°øÇÏ¿´´Ù¸é, Ŭ¶óÀ̾ðÆ®´Â ÀÚµ¿À¸·Î °°Àº ¼¹ö¿¡¼
<code>"Restricted Files"</code> ¿µ¿ªÀ¸·Î Ç¥½ÃµÈ ±¸¿ª¿¡ ´ëÇØ
µ¿ÀÏÇÑ ¾ÏÈ£¸¦ ½ÃµµÇÑ´Ù. ±×·¡¼ ¿©·¯ Á¦ÇÑ ±¸¿ªÀÌ °°Àº ¿µ¿ªÀ»
°øÀ¯ÇÏ¸é »ç¿ëÀÚ°¡ ¿©·¯¹ø ¾ÏÈ£¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Æµµ µÈ´Ù. ¹°·Ð
º¸¾È»ó ÀÌÀ¯·Î Ŭ¶óÀ̾ðÆ®´Â ¼¹öÀÇ È£½ºÆ®¸íÀÌ ´Ù¸£¸é Ç×»ó
»õ·Î ¾ÏÈ£¸¦ ¹°¾îº»´Ù.</p>
<p><directive module="mod_authn_file">AuthUserFile</directive>
Áö½Ã¾î´Â ¿ì¸®°¡ ¹æ±Ý <code>htpasswd</code>·Î ¸¸µç ¾ÏÈ£ÆÄÀÏÀÇ
°æ·Î¸¦ ¼³Á¤ÇÑ´Ù. »ç¿ëÀÚ°¡ ¸¹´Ù¸é ¿äû¸¶´Ù ¸Å¹ø »ç¿ëÀÚ¸¦
ÀÎÁõÇϱâÀ§ÇØ ÀÏ¹Ý ¹®¼ÆÄÀÏÀ» °Ë»öÇϴµ¥ ½Ã°£ÀÌ »ó´çÈ÷ ¸¹ÀÌ
°É¸± ¼ö ÀÖ´Ù. ¾ÆÆÄÄ¡´Â ºü¸¥ µ¥ÀÌŸº£À̽º ÆÄÀÏ¿¡ »ç¿ëÀÚ Á¤º¸¸¦
ÀúÀåÇÒ ¼ö ÀÖ´Ù. <module>mod_authn_dbm</module> ¸ðµâÀº <directive
module="mod_authn_dbm">AuthDBMUserFile</directive> Áö½Ã¾î¸¦
Á¦°øÇÑ´Ù. <a href="../programs/dbmmanage.html">dbmmanage</a>
ÇÁ·Î±×·¥À» »ç¿ëÇÏ¿© ¾ÏÈ£ÆÄÀÏÀ» ¸¸µé°í ´Ù·é´Ù. <a
href="http://modules.apache.org/">¾ÆÆÄÄ¡ ¸ðµâ
µ¥ÀÌŸº£À̽º</a>¿¡´Â ¿©·¯ ´Ù¸¥ ÀÎÁõ ¹æ½ÄÀ» Á¦°øÇÏ´Â Á¦»ïÀÚ°¡
¸¸µç ¸ðµâµéÀÌ ÀÖ´Ù.</p>
<p>¸¶Áö¸·À¸·Î <directive module="core">Require</directive>
Áö½Ã¾î´Â ¼¹öÀÇ Æ¯Á¤ ¿µ¿ª¿¡ Á¢±ÙÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ¸¦ ÁöÁ¤ÇÏ¿©
±ÇÇѺο©¸¦ ÇÑ´Ù. ´ÙÀ½ ÀýÀº <code>require</code> Áö½Ã¾î¸¦
»ç¿ëÇÏ´Â ´Ù¾çÇÑ ¹æ¹ýÀ» ¼³¸íÇÑ´Ù.</p>
</section>
<section id="lettingmorethanonepersonin"><title>¿©·¯¸íÀ» µé¿©º¸³»±â</title>
<p>À§ÀÇ Áö½Ã¾î´Â µð·ºÅ丮·Î (»ç¿ëÀÚ¸íÀÌ <code>rbowen</code>ÀÎ)
ÇÑ »ç¶÷¸¸À» µé¿©º¸³½´Ù. ´ëºÎºÐÀÇ °æ¿ì ¿©·¯ »ç¶÷À» µé¿©º¸³»°í
½ÍÀ» °ÍÀÌ´Ù. ÀÌÁ¦ <directive
module="mod_authz_groupfile">AuthGroupFile</directive>À»
»ç¿ëÇÒ ¶§´Ù.</p>
<p>¿©·¯ »ç¶÷À» µé¿©º¸³»°í ½Í´Ù¸é ±×·ì¸í°ú ±× ±×·ì¿¡ ¾î¶²
»ç¿ëÀÚµéÀÌ ÀÖ´ÂÁö ¾Ë·ÁÁÖ´Â ±×·ìÆÄÀÏÀÌ ÇÊ¿äÇÏ´Ù. ÀÌ ÆÄÀÏÀÇ
Çü½ÄÀº ¸Å¿ì °£´ÜÇÏ¿©, ¾Æ¹« ÆíÁý±â·Î³ª ¸¸µé ¼ö ÀÖ´Ù. ÆÄÀϳ»¿ëÀº
´ÙÀ½°ú °°´Ù.</p>
<example>
GroupName: rbowen dpitts sungo rshersey
</example>
<p>±×³É °ø¹éÀ¸·Î ±¸ºÐÇÑ ±ä ±×·ì ±¸¼º¿ø ¸ñ·ÏÀÏ »ÓÀÌ´Ù.</p>
<p>±âÁ¸ÀÇ ¾ÏÈ£ÆÄÀÏ¿¡ »ç¿ëÀÚ¸¦ Ãß°¡ÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÑ´Ù</p>
<example>
htpasswd /usr/local/apache/passwd/passwords dpitts
</example>
<p>Àü°ú °°Áö¸¸, »õ·Î ÆÄÀÏÀ» ¸¸µéÁö ¾Ê°í ±âÁ¸ ÆÄÀÏ¿¡ »ç¿ëÀÚ¸¦
Ãß°¡ÇÑ´Ù. (<code>-c</code> ¿É¼ÇÀº »õ·Î ¾ÏÈ£ÆÄÀÏÀ» ¸¸µç´Ù).</p>
<p>ÀÌÁ¦ <code>.htaccess</code> ÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.</p>
<example>
AuthType Basic<br />
AuthName "By Invitation Only"<br />
AuthUserFile /usr/local/apache/passwd/passwords<br />
AuthGroupFile /usr/local/apache/passwd/groups<br />
Require group GroupName
</example>
<p>±×·¯¸é <code>GroupName</code> ±×·ì¿¡ ¼ÓÇϸç
<code>password</code> ÆÄÀÏ¿¡ Ç׸ñÀÌ ÀÖ´Â »ç¿ëÀÚ°¡ ¿Ã¹Ù¸¥
¾ÏÈ£¸¦ ÀÔ·ÂÇϸé Á¢±ÙÀ» Çã¿ëÇÑ´Ù.</p>
<p>¿©·¯ ÀÏ¹Ý »ç¿ëÀÚ¸¦ µé¿©º¸³»´Â ´Ù¸¥ ¹æ¹ýÀÌ ÀÖ´Ù. ±×·ìÆÄÀÏÀ»
¸¸µé ÇÊ¿ä¾øÀÌ ´ÙÀ½ Áö½Ã¾î¸¦ »ç¿ëÇϱ⸸ ÇÏ¸é µÈ´Ù.</p>
<example>
Require valid-user
</example>
<p><code>Require user rbowen</code> ´ë½Å ÀÌ Áö½Ã¾î¸¦ »ç¿ëÇϸé
¾ÏÈ£ÆÄÀÏ¿¡ ÀÖ´Â ´©±¸¶óµµ ¿Ã¹Ù¸¥ ¾ÏÈ£¸¦ ÀÔ·ÂÇϱ⸸ Çϸé Á¢±ÙÀ»
Çã¿ëÇÑ´Ù. ±×·ìº°·Î ´Ù¸¥ ¾ÏÈ£ÆÄÀÏÀ» »ç¿ëÇÏ¿© ±×·ì°ú ºñ½ÁÇÑ
È¿°ú¸¦ ¾òÀ» ¼öµµ ÀÖ´Ù. ÀÌ °æ¿ì ¾ÆÆÄÄ¡°¡ ÆÄÀÏ µÎ°³(¾ÏÈ£ÆÄÀÏ°ú
±×·ìÆÄÀÏ)°¡ ¾Æ´Ñ ÆÄÀÏ ÇÑ°³(¾ÏÈ£ÆÄÀÏ)¸¸ °Ë»çÇÏ¸é µÈ´Ù´Â °ÍÀÌ
ÀåÁ¡ÀÌ´Ù. ±×·¯³ª ¿©·¯ ¾ÏÈ£ÆÄÀÏÀ» °ü¸®ÇØ¾ß ÇÏ°í, <directive
module="mod_authn_file">AuthUserFile</directive> Áö½Ã¾î¿¡
Á¤È®ÇÑ ¾ÏÈ£ÆÄÀÏÀ» ÁöÁ¤ÇØ¾ß ÇÏ´Â °ÍÀº ´ÜÁ¡ÀÌ´Ù.</p>
</section>
<section id="possibleproblems"><title>¹ß»ýÇÒ ¼ö ÀÖ´Â ¹®Á¦Á¡</title>
<p>Basic ÀÎÁõ ¹æ½ÄÀº ¼¹ö¿¡¼ ¹®¼¸¦ ¿äûÇÒ ¶§¸¶´Ù »ç¿ëÀÚ¸í°ú
¾ÏÈ£¸¦ È®ÀÎÇÑ´Ù. ½ÉÁö¾î °°Àº ÆäÀÌÁö¸¦ »õ·Î °íħÇÒ ¶§µµ ÆäÀÌÁö¿Í
(±×¸²ÀÌ ¾ÏÈ£·Î º¸È£ÇÏ´Â µð·ºÅ丮¿¡ ÀÖ´Â °æ¿ì) ÆäÀÌÁö¿¡ ÀÖ´Â
¸ðµç ±×¸²¿¡ ´ëÇØ ´Ù½Ã È®ÀÎÇÑ´Ù. ÁüÀÛÇϵíÀÌ ¼Óµµ°¡ Á¶±Ý ´À·ÁÁø´Ù.
¾ÏÈ£ÆÄÀÏÀ» ¿¾î¼ »ç¿ëÀÚ¸íÀ» ãÀ» ¶§±îÁö »ç¿ëÀÚ ¸ñ·ÏÀ» »ìÆìºÁ¾ß
Çϱ⶧¹®¿¡ ¾ÏÈ£ÆÄÀÏ Å©±â°¡ Ä¿Áú ¼ö·Ï ´õ ´À·ÁÁø´Ù. ±×¸®°í
ÀÌ ÀÛ¾÷À» ÆäÀÌÁö¸¦ ¿äûÇÒ ¶§¸¶´Ù ÁøÇàÇÑ´Ù.</p>
<p>±×·¡¼ Çö½ÇÀûÀ¸·Î ÇÑ ¾ÏÈ£ÆÄÀÏ¿¡ ÀúÀåÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ¼ö¿¡´Â
ÇÑ°è°¡ ÀÖ´Ù. ÀÌ ÇÑ°è´Â »ç¿ëÇÏ´Â ¼¹öÀÇ ¼º´É¿¡ µû¶ó ´Ù¸£Áö¸¸,
Ç׸ñÀÌ ¼ö¹é°³°¡ ³Ñ´Â´Ù¸é ´À·ÁÁø´Ù°í »ý°¢ÇÏ°í ´Ù¸¥ ÀÎÁõ ¹æ¹ýÀ»
°í·ÁÇØ¾ß ÇÑ´Ù.</p>
</section>
<section id="whatotherneatstuffcanido"><title>´Ù¸¥ ¹æ¹ýµµ °¡´ÉÇÑ°¡?</title>
<p>»ç¿ëÀÚ¸í°ú ¾ÏÈ£¸¦ »ç¿ëÇÑ ÀÎÁõÀÌ ´Ù°¡ ¾Æ´Ï´Ù. Á¾Á¾ Á¢¼ÓÇÑ
Àå¼Ò¿Í °°Àº ´Ù¸¥ Á¤º¸¸¦ °¡Áö°í »ç¿ëÀÚ¸¦ µé¿©º¸³»°í ½ÍÀ»
¶§°¡ ÀÖ´Ù.</p>
<p><directive module="mod_authz_host">Allow</directive>¿Í
<directive module="mod_authz_host">Deny</directive> Áö½Ã¾î´Â
¹®¼¸¦ ¿äûÇÑ ÄÄÇ»ÅÍÀÇ È£½ºÆ®¸í ȤÀº È£½ºÆ® ÁÖ¼Ò¸¦ °¡Áö°í
Á¢±ÙÀ» Çã¿ëÇϰųª °ÅºÎÇÑ´Ù. <directive
module="mod_authz_host">Order</directive> Áö½Ã¾î´Â ÀÌ µÎ
Áö½Ã¾î¿Í °°ÀÌ »ç¿ëÇÏ¿©, ¾ÆÆÄÄ¡¿¡°Ô ¾î¶² ¼ø¼·Î ±ÔÄ¢À» Àû¿ëÇÒÁö
¾Ë¸°´Ù.</p>
<p>À̵é Áö½Ã¾î »ç¿ë¹ýÀº ´ÙÀ½°ú °°´Ù.</p>
<example>
Allow from <var>address</var>
</example>
<p>¿©±â¼ <var>address</var>´Â IP ÁÖ¼Ò(ȤÀº IP ÁÖ¼Ò ÀϺÎ)³ª
¿ÏÀüÇÑ µµ¸ÞÀθí(ȤÀº µµ¸ÞÀθí ÀϺÎ)ÀÌ´Ù. ¿øÇÑ´Ù¸é ¿©·¯ ÁÖ¼Ò³ª
µµ¸ÞÀθíÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
<p>¿¹¸¦ µé¾î, ´©±º°¡°¡ °Ô½ÃÆÇ¿¡ ±¤°í¸¦ ¿Ã¸®°í ÀÖ´Ù¸é ´ÙÀ½°ú
°°ÀÌ Á¢±ÙÀ» ¸·À» ¼ö ÀÖ´Ù.</p>
<example>
Deny from 205.252.46.165
</example>
<p>±× ÁÖ¼Ò¿¡¼ µé¾î¿À´Â ¹æ¹®ÀÚ´Â ÀÌ Áö½Ã¾î°¡ º¸È£ÇÏ´Â ÆäÀÌÁö¸¦
º¼ ¼ö ¾ø´Ù. IP ÁÖ¼Ò ´ë½Å ´ÙÀ½°ú °°ÀÌ ÄÄÇ»Å͸íÀ» »ç¿ëÇÒ ¼öµµ
ÀÖ´Ù.</p>
<example>
Deny from <var>host.example.com</var>
</example>
<p>¶Ç, Àüü µµ¸ÞÀÎÀÇ Á¢±ÙÀ» ¸·À¸·Á¸é ÁÖ¼Ò³ª µµ¸ÞÀθíÀÇ ÀϺθ¦
»ç¿ëÇÑ´Ù.</p>
<example>
Deny from <var>192.101.205</var><br />
Deny from <var>cyberthugs.com</var> <var>moreidiots.com</var><br />
Deny from ke
</example>
<p><directive module="mod_authz_host">Order</directive>¸¦
<directive module="mod_authz_host">Deny</directive>¿Í <directive
module="mod_authz_host">Allow</directive> Áö½Ã¾î¿Í °°ÀÌ
»ç¿ëÇÏ¿© ½ÇÁ¦·Î ¿øÇÏ´Â ´ë»óÀ» ¸·À» ¼ö ÀÖ´Ù.</p>
<example>
Order deny,allow<br />
Deny from all<br />
Allow from <var>dev.example.com</var>
</example>
<p><directive module="mod_authz_host">Allow</directive>
Áö½Ã¾î¸¸ »ç¿ëÇϸé, ÇØ´ç È£½ºÆ®ÀÇ »ç¿ëÀÚ¸¦ Çã¿ëÇÏ°í °Å±â¿¡
Ãß°¡·Î ¸ðµç »ç¶÷À» Çã¿ëÇϹǷΠ¿øÇÏ´Â °á°ú¸¦ ¾òÁö ¸øÇÑ´Ù.
´ç½ÅÀº ƯÁ¤ »ç¶÷<em>¸¸</em> Çã¿ëÇÏ±æ ¿øÇÑ´Ù.</p>
</section>
<section id="moreinformation"><title>´õ ¸¹Àº Á¤º¸</title>
<p><module>mod_auth_basic</module>°ú
<module>mod_authz_host</module> ¹®¼¿¡ Á¢±ÙÁ¦¾î°¡ µ¿ÀÛÇÏ´Â
¹æ¹ý¿¡ ´ëÇÑ ´õ ¸¹Àº Á¤º¸°¡ ÀÖ´Ù.</p>
</section>
</manualpage>
|