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
|
<?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.3.2.2 -->
<manualpage metafile="ip-based.xml.meta">
<parentdocument href="./">°¡»óÈ£½ºÆ®</parentdocument>
<title>¾ÆÆÄÄ¡ IP±â¹Ý °¡»óÈ£½ºÆ® Áö¿ø</title>
<seealso>
<a href="name-based.html">À̸§±â¹Ý °¡»óÈ£½ºÆ® Áö¿ø</a>
</seealso>
<section id="requirements"><title>½Ã½ºÅÛ ¿ä±¸»çÇ×</title>
<p><cite>IP±â¹Ý</cite>À̶õ ¸»ÀÌ ÀǹÌÇϵíÀÌ ¼¹ö´Â
<strong>IP±â¹Ý °¡»óÈ£½ºÆ® °¢°¢¿¡ ´ëÇØ ´Ù¸¥ IP ÁÖ¼Ò¸¦
°¡Á®¾ßÇÑ´Ù</strong>. ÀÌ´Â ÄÄÇ»Å͸¦ ¹°¸®ÀûÀ¸·Î ¿©·¯ ³×Æ®¿÷¿¡
¿¬°áÇϰųª, ÃÖ±Ù ¿î¿µÃ¼Á¦¿¡¼ Áö¿øÇÏ´Â °¡»ó ÀÎÅÍÆäÀ̽º¸¦
(ÀÚ¼¼ÇÑ ³»¿ëÀº ½Ã½ºÅÛ ¹®¼¸¦ Âü°íÇ϶ó. ÈçÈ÷ "ip aliases"¶ó°í
Çϸç, º¸Åë "ifconfig" ¸í·É¾î·Î ¸¸µç´Ù) »ç¿ëÇÏ¿© °¡´ÉÇÏ´Ù.</p>
</section>
<section id="howto"><title>¾ÆÆÄÄ¡ ¼³Á¤¹æ¹ý</title>
<p>¿©·¯ È£½ºÆ®¸¦ Áö¿øÇϵµ·Ï ¾ÆÆÄÄ¡¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº µÎ°¡Áö´Ù.
Çϳª´Â °¢ È£½ºÆ®¸¶´Ù º°µµÀÇ À¥¼¹ö¸¦ ½ÇÇàÇÏ´Â
¹ýÀÌ°í, ´Ù¸¥ Çϳª´Â ¸ðµç °¡»óÈ£½ºÆ®¸¦ Áö¿øÇÏ´Â ¼¹ö ÇÑ°³¸¦
½ÇÇàÇÏ´Â ¹æ¹ýÀÌ´Ù.</p>
<p>¾ðÁ¦ ¿©·¯ ¼¹ö¸¦ »ç¿ëÇϳª:</p>
<ul>
<li>ȸ»ç2ÀÇ »ç¿ëÀÚ°¡ À¥ÀÌ¿ÜÀÇ ¹æ¹ýÀ¸·Î ȸ»ç1ÀÇ ÀڷḦ ÀÐÀ»
¼ö ¾ø°Ô ÇÏ´Â µî º¸¾È»ó ±¸ºÐÀÌ ÇÊ¿äÇÑ °æ¿ì. ÀÌ °æ¿ì
µÎ ¼¹ö¸¦ °¢°¢ ´Ù¸¥ <directive
module="mpm_common">User</directive>, <directive
module="mpm_common">Group</directive>, <directive
module="mpm_common">Listen</directive>, <directive
module="core">ServerRoot</directive> ¼³Á¤À¸·Î ½ÇÇàÇØ¾ß ÇÑ´Ù.</li>
<li>ÃæºÐÇÑ ¸Þ¸ð¸®°¡ ÀÖ°í, ÄÄÇ»ÅÍÀÇ ¸ðµç IP¸¦ ±â´Ù¸®±âÀ§ÇÑ
<a href="../misc/descriptors.html">ÆÄÀϱâ¼úÀÚ(file descriptor)
¿ä±¸»çÇ×</a>µµ ¸¸Á·ÇÑ´Ù. "¿ÍÀϵåÄ«µå"³ª ƯÁ¤ ÁÖ¼Ò¸¦ <directive
module="mpm_common">Listen</directive>ÇÒ ¼ö¸¸ ÀÖ´Ù. ±×·¡¼
¾î¶² ÀÌÀ¯¿¡¼°Ç ƯÁ¤ ÁÖ¼Ò¸¦ ±â´Ù¸± ÇÊ¿ä°¡ ÀÖ´Ù¸é, (ÇÑ
À¥¼¹ö°¡ ÇÑ ÁÖ¼Ò¸¦ Á¦¿ÜÇÑ ¸ðµç ÁÖ¼Ò¸¦ ±â´Ù¸®°í ´Ù¸¥ ÇÑ
À¥¼¹ö°¡ Á¦¿ÜÇÑ ÁÖ¼Ò¸¦ ±â´Ù¸± ¼ö ÀÖÁö¸¸) ÁöÁ¤ÇÑ ÁÖ¼Ò
¸ðµÎ¸¦ ±â´Ù·Á¾ß ÇÑ´Ù.</li>
</ul>
<p>¾ðÁ¦ ¼¹ö ÇÑ°³¸¦ »ç¿ëÇϳª:</p>
<ul>
<li>°¡»óÈ£½ºÆ®µéÀÇ À¥¼¹ö ¼³Á¤À» °øÀ¯ÇÒ ¼ö ÀÖ´Â °æ¿ì.</li>
<li>ÄÄÇ»ÅÍ°¡ ¸Å¿ì ¸¹Àº ¿äûÀ» ¼ºñ½ºÇÑ´Ù¸é ¿©·¯ ¼¹ö¸¦
½ÇÇàÇϱ⿡ ¼Óµµ ¼Õ½ÇÀÌ Å¬ ¼ö ÀÖ´Ù.</li>
</ul>
</section>
<section id="multiple"><title>¿©·¯ ¼¹ö¸¦ ½ÇÇàÇϱâ</title>
<p>°¢ °¡»óÈ£½ºÆ®º°·Î À¥¼¹ö¸¦ ¼³Ä¡ÇÑ´Ù. ¼³Á¤ÆÄÀÏÀÇ
<directive module="mpm_common">Listen</directive> Áö½Ã¾î¿¡
¼¹ö°¡ ¼ºñ½ºÇÒ IP ÁÖ¼Ò(ȤÀº °¡»óÈ£½ºÆ®)¸¦ Àû¾îÁØ´Ù. ¿¹¸¦
µé¸é,</p>
<example>
Listen www.smallco.com:80
</example>
<p>È£½ºÆ®¸í º¸´Ù´Â IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
(<a href="../dns-caveats.html">DNS ¹®Á¦</a> Âü°í)</p>
</section>
<section id="single"><title>¼¹ö Çϳª·Î °¡»óÈ£½ºÆ® ½ÇÇàÇϱâ</title>
<p>ÀÌ °æ¿ì À¥¼¹ö ÇÑ°³·Î ÁÖ¼¹ö¿Í ¸ðµç °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ
¿äûÀ» ¼ºñ½ºÇÑ´Ù. ¼³Á¤ÆÄÀÏÀÇ <directive
module="core">VirtualHost</directive> Áö½Ã¾î¿¡ °¡»óÈ£½ºÆ®¸¶´Ù
´Ù¸¥ <directive module="core">ServerAdmin</directive>,
<directive module="core">ServerName</directive>, <directive
module="core">DocumentRoot</directive>, <directive
module="core">ErrorLog</directive>, <directive
module="mod_log_config">TransferLog</directive>,
<directive module="mod_log_config">CustomLog</directive>
Áö½Ã¾î °ªÀ» ¼³Á¤ÇÑ´Ù. ¿¹¸¦ µé¸é,</p>
<example>
<VirtualHost www.smallco.com><br />
ServerAdmin webmaster@mail.smallco.com<br />
DocumentRoot /groups/smallco/www<br />
ServerName www.smallco.com<br />
ErrorLog /groups/smallco/logs/error_log<br />
TransferLog /groups/smallco/logs/access_log<br />
</VirtualHost><br />
<br />
<VirtualHost www.baygroup.org><br />
ServerAdmin webmaster@mail.baygroup.org<br />
DocumentRoot /groups/baygroup/www<br />
ServerName www.baygroup.org<br />
ErrorLog /groups/baygroup/logs/error_log<br />
TransferLog /groups/baygroup/logs/access_log<br />
</VirtualHost>
</example>
<p>È£½ºÆ®¸í º¸´Ù´Â IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
(<a href="../dns-caveats.html">DNS ¹®Á¦</a> Âü°í)</p>
<p>VirtualHost Áö½Ã¾î ¾È¿¡¼´Â ÇÁ·Î¼¼½º »ý¼º°ú ±âŸ ¸î¸î Áö½Ã¾î¸¦
Á¦¿ÜÇÏ°í °ÅÀÇ <strong>¸ðµç</strong> ¼³Á¤Áö½Ã¾î¸¦ »ç¿ëÇÒ
¼ö ÀÖ´Ù. VirtualHost Áö½Ã¾î ¾È¿¡¼ Áö½Ã¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö
¾Ë·Á¸é <a href="../mod/directives.html">Áö½Ã¾î ¸ñ·Ï</a>¿¡¼
<a href="../mod/directive-dict.html#Context">»ç¿ëÀå¼Ò</a>¸¦
È®ÀÎÇ϶ó.</p>
<p><a href="../suexec.html">suEXEC ÇÁ·Î±×·¥</a>À»
»ç¿ëÇÑ´Ù¸é VirtualHost Áö½Ã¾î ¾È¿¡ <directive
module="mpm_common">User</directive>¿Í <directive
module="mpm_common">Group</directive>À» »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
<p><em>º¸¾È:</em> ¼¹ö¸¦ ½ÇÇàÇÏ´Â »ç¿ëÀÚ¿Ü¿¡ ´Ù¸¥ »ç¶÷¿¡°Ô
·Î±×ÆÄÀÏÀÌ ÀÖ´Â µð·ºÅ丮ÀÇ ¾²±â±ÇÇÑÀÌ ÀÖ´Ù¸é º¸¾È
¹®Á¦¸¦ Á¶½ÉÇ϶ó. ÀÚ¼¼ÇÑ ³»¿ëÀº <a
href="../misc/security_tips.html">º¸¾È ÆÁ</a>À» Âü°íÇ϶ó.</p>
</section>
</manualpage>
|