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
|
<?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: 1.7 -->
<!--
Copyright 2003-2004 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="bind.xml.meta">
<title>ÁÖ¼Ò¿Í Æ÷Æ® ÁöÁ¤ (Binding)</title>
<summary>
<p>¾ÆÆÄÄ¡°¡ ƯÁ¤ ÁÖ¼Ò¿Í Æ÷Æ®¿¡¼ ¼ºñ½ºÇϵµ·Ï ¼³Á¤Çϱâ.</p>
</summary>
<seealso><a href="vhosts/">°¡»óÈ£½ºÆ®</a></seealso>
<seealso><a href="dns-caveats.html">DNS ¹®Á¦</a></seealso>
<section id="overview">
<title>°³¿ä</title>
<related>
<modulelist>
<module>core</module>
<module>mpm_common</module>
</modulelist>
<directivelist>
<directive module="core" type="section">VirtualHost</directive>
<directive module="mpm_common">Listen</directive>
</directivelist>
</related>
<p>¾ÆÆÄÄ¡¸¦ ½ÃÀÛÇÏ¸é ¾ÆÆÄÄ¡´Â ÄÄÇ»ÅÍÀÇ ¾î¶² Æ÷Æ®¿Í ÁÖ¼Ò¿¡
¿¬°áÇÏ¿©, µé¾î¿À´Â ¿äûÀ» ±â´Ù¸°´Ù. ±âº»ÀûÀ¸·Î ¾ÆÆÄÄ¡´Â
ÄÄÇ»ÅÍÀÇ ¸ðµç ÁÖ¼Ò¿¡¼ ±â´Ù¸°´Ù. ±×·¯³ª ¾ÆÆÄÄ¡°¡ ƯÁ¤ Æ÷Æ®³ª
¼±ÅÃÇÑ ÁÖ¼Ò¸¸À» ±â´Ù¸®°Ô ÇؾßÇÒ °æ¿ì°¡ ÀÖ´Ù. ¶Ç ÀÌ ¹®Á¦´Â
¾ÆÆÄÄ¡°¡ ¾î¶»°Ô ´Ù¸¥ IP ÁÖ¼Ò, È£½ºÆ®¸í, Æ÷Æ®¿¡ ¹ÝÀÀÇÒÁö¸¦
°áÁ¤ÇÏ´Â °¡»óÈ£½ºÆ® ±â´É°úµµ °ü·ÃµÇÀÖ´Ù.</p>
<p><directive module="mpm_common">Listen</directive> Áö½Ã¾î´Â
¼¹ö°¡ ƯÁ¤ Æ÷Æ®³ª ÁÖ¼Ò¿Í Æ÷Æ® Á¶ÇÕ¿¡¼¸¸ ¿äûÀ» ¹Þ°Ô
ÇÑ´Ù. <directive module="mpm_common">Listen</directive>
Áö½Ã¾î¿¡ Æ÷Æ® ¹øÈ£¸¸ ÁöÁ¤Çϸé, ¼¹ö´Â ¸ðµç ÀÎÅÍÆäÀ̽º¿¡¼
ÁöÁ¤ÇÑ Æ÷Æ®¸¦ ±â´Ù¸°´Ù. ¿©·¯ Listen Áö½Ã¾î·Î ±â´Ù¸± ¿©·¯
ÁÖ¼Ò¿Í Æ÷Æ®¸¦ ÁöÁ¤ÇÒ ¼öµµ ÀÖ´Ù. ¼¹ö´Â ¿°ÅÇÑ ÁÖ¼Ò¿Í Æ÷Æ®·Î
¿äûÀÌ µé¾î¿À¸é ÀÀ´äÇÑ´Ù.</p>
<p>¿¹¸¦ µé¾î, ¼¹ö°¡ 80¹ø°ú 8000¹ø Æ÷Æ® ¸ðµÎ¿¡¼ ¿¬°áÀ»
¹Þµµ·Ï ÇÏ·Á¸é:</p>
<example>
Listen 80<br />
Listen 8000
</example>
<p>¼¹ö°¡ ÁöÁ¤ÇÑ µÎ ÀÎÅÍÆäÀ̽º¿Í Æ÷Æ®¿¡¼ ¿¬°áÀ» ±â´Ù¸®µµ·Ï
ÇÏ·Á¸é,</p>
<example>
Listen 192.170.2.1:80<br />
Listen 192.170.2.5:8000
</example>
<p>IPv6 ÁÖ¼Ò´Â ´ÙÀ½°ú °°ÀÌ ´ë°ýÈ£·Î ¹¾î¾ß ÇÑ´Ù:</p>
<example>
Listen [fe80::a00:20ff:fea7:ccea]:80
</example>
</section>
<section id="ipv6">
<title>IPv6¿¡¼ Ưº°È÷ °í·ÁÇÒ Á¡</title>
<p>IPv6¸¦ ±¸ÇöÇÑ Ç÷¡ÆûÀÌ ´Ã°í ÀÖ°í APRÀÌ À̵é Ç÷¡Æû ´ëºÎºÐ¿¡¼
IPv6¸¦ Áö¿øÇϱ⶧¹®¿¡, ¾ÆÆÄÄ¡´Â IPv6 ¼ÒÄÏÀ» ÇÒ´çÇÏ¿© IPv6·Î
¹ÞÀº ¿äûÀ» ó¸®ÇÒ ¼ö ÀÖ´Ù.</p>
<p>¾ÆÆÄÄ¡ °ü¸®ÀÚ¿¡°Ô º¹ÀâÇÑ ºÎºÐÀº IPv6 ¼ÒÄÏÀÌ IPv4 ¿¬°á°ú
IPv6 ¿¬°áÀ» ¸ðµÎ ó¸®ÇÒ ¼ö ÀÖ´À³Ä´Â Á¡ÀÌ´Ù. ´ëºÎºÐÀÇ Ç÷¡Æû¿¡¼´Â
IPv4-´ëÀÀ(mapped) IPv6 ÁÖ¼Ò¸¦ »ç¿ëÇÏ¿© IPv6 ¼ÒÄÏ¿¡¼ IPv4
¿¬°áÀ» ¹ÞÁö¸¸, FreeBSD¿Í NetBSD¿Í OpenBSDÀº ½Ã½ºÅÛÀüü Á¤Ã¥¶§¹®¿¡
±âº»ÀûÀ¸·Î Çã¿ëÇÏÁö ¾Ê´Â´Ù. ±×·¯³ª ±âº»ÀûÀ¸·Î Çã¿ëÇÏÁö¾Ê´Â
½Ã½ºÅÛÀÌ¶óµµ ¾ÆÆÄÄ¡¸¦ À§ÇØ Æ¯º°ÇÑ ¼³Á¤ ÆĶó¹ÌÅÍ·Î º¯°æÇÒ
¼ö ÀÖ´Ù.</p>
<p>¾ÆÆÄÄ¡°¡ ÃÖ¼ÒÇÑÀÇ ¼ÒÄÏÀ» »ç¿ëÇÏ¿© IPv4 ¿¬°á°ú IPv6 ¿¬°áÀ»
¸ðµÎ ¹Þµµ·ÏÇÏ·Á¸é IPv4-´ëÀÀ IPv6 ÁÖ¼Ò¸¦ »ç¿ëÇØ¾ß ÇÑ´Ù. ±×·¯±âÀ§Çؼ
ÄÄÆÄÀ϶§ ±¸¼º ¿É¼Ç <code>--enable-v4-mapped</code>¸¦ »ç¿ëÇÏ°í,
´ÙÀ½°ú °°ÀÌ ÀϹÝÀûÀÎ Listen Áö½Ã¾î¸¦ »ç¿ëÇÑ´Ù:</p>
<example>
Listen 80
</example>
<p><code>--enable-v4-mapped</code>¸¦ »ç¿ëÇÒ¶§ ¾ÆÆÄÄ¡°¡ ¸¸µå´Â
±âº» ¼³Á¤ÆÄÀÏÀÇ Listen Áö½Ã¾î´Â À§¿Í °°´Ù.
<code>--enable-v4-mapped</code>´Â FreeBSD, NetBSD, OpenBSD¸¦
Á¦¿ÜÇÑ ¸ðµç Ç÷¡Æû¿¡¼ ±âº»°ªÀÌ°í, ¾Æ¸¶µµ ´ç½ÅÀÇ ¾ÆÆÄÄ¡µµ
¸¶Âù°¡ÁöÀÏ °ÍÀÌ´Ù.</p>
<p>Ç÷¡Æû°ú APRÀÇ Áö¿ø¿©ºÎ¿Í °ü°è¾øÀÌ ¾ÆÆÄÄ¡°¡ IPv4 ¿¬°á¸¸À»
¹Þµµ·ÏÇÏ·Á¸é, ´ÙÀ½ ¿¹Á¦¿Í °°ÀÌ ¸ðµç Listen Áö½Ã¾î¿¡ IPv4 ÁÖ¼Ò¸¦
»ç¿ëÇÑ´Ù:</p>
<example>
Listen 0.0.0.0:80<br />
Listen 192.170.2.1:80
</example>
<p>IPv4 ¿¬°á°ú IPv6 ¿¬°áÀ» ¼·Î ´Ù¸¥ ¼ÒÄÏÀ¸·Î ¹ÞÀ¸·Á¸é,
ÄÄÆÄÀ϶§ ±¸¼º ¿É¼Ç <code>--disable-v4-mapped</code>¸¦ »ç¿ëÇÏ°í
´ÙÀ½°ú °°ÀÌ Listen Áö½Ã¾î¸¦ µû·Î »ç¿ëÇÑ´Ù:</p>
<example>
Listen [::]:80<br />
Listen 0.0.0.0:80
</example>
<p><code>--disable-v4-mapped</code>¸¦ »ç¿ëÇÒ¶§ ¾ÆÆÄÄ¡°¡ ¸¸µå´Â
±âº» ¼³Á¤ÆÄÀÏÀÇ Listen Áö½Ã¾î´Â À§¿Í °°´Ù.
<code>--disable-v4-mapped</code>´Â FreeBSD, NetBSD, OpenBSD¿¡¼
±âº»°ªÀÌ´Ù.</p>
</section>
<section id="virtualhost">
<title>°¡»óÈ£½ºÆ®¿Í ¾î¶»°Ô ¿¬°üµÇ³ª</title>
<p>ListenÀº °¡»óÈ£½ºÆ®¸¦ ¸¸µéÁö ¾Ê´Â´Ù. ÀÌ´Â ´ÜÁö ÁÖ¼¹ö°¡
¾î¶² ÁÖ¼Ò¿Í Æ÷Æ®¸¦ ±â´Ù¸±Áö¸¸ ¾Ë·ÁÁØ´Ù. <directive
module="core" type="section">VirtualHost</directive> Áö½Ã¾î¸¦
»ç¿ëÇÏÁö ¾ÊÀ¸¸é, ¼¹ö´Â ¹ÞÀº ¸ðµç ¿äûÀ» ¶È°°ÀÌ Ã³¸®ÇÑ´Ù.
±×·¯³ª <directive module="core"
type="section">VirtualHost</directive>·Î ¿©·¯ ÁÖ¼Ò¿Í Æ÷Æ®¿¡
´ëÇØ ´Ù¸¥ ÇൿÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù. °¡»óÈ£½ºÆ®¸¦ ¸¸µé·Á¸é
¸ÕÀú ¼¹ö¿¡°Ô »ç¿ëÇÒ ÁÖ¼Ò¿Í Æ÷Æ®¸¦ ¾Ë·ÁÁà¾ß ÇÑ´Ù. ±×¸®°í
ƯÁ¤ ÁÖ¼Ò¿Í Æ÷Æ®¿¡ ´ëÇÑ °¡»óÈ£½ºÆ®ÀÇ ÇൿÀ» ÁöÁ¤ÇÒ
<directive module="core" type="section">VirtualHost</directive>
¼½¼ÇÀÌ ÇÊ¿äÇÏ´Ù. ÁÖ¼¹ö°¡ ±â´Ù¸®Áö¾Ê´Â ÁÖ¼Ò¿Í Æ÷Æ®¸¦ »ç¿ëÇÏ´Â
<directive module="core" type="section">VirtualHost</directive>´Â
Á¢±ÙÇÒ ¼ö ¾øÀ½À» ÁÖÀÇÇ϶ó.</p>
</section>
</manualpage>
|