1 <?xml version='1.0' encoding='EUC-KR' ?>
2 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 1.8 -->
7 Copyright 2003-2004 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
22 <manualpage metafile="ip-based.xml.meta">
23 <parentdocument href="./">°¡»óÈ£½ºÆ®</parentdocument>
24 <title>¾ÆÆÄÄ¡ IP±â¹Ý °¡»óÈ£½ºÆ® Áö¿ø</title>
27 <a href="name-based.html">À̸§±â¹Ý °¡»óÈ£½ºÆ® Áö¿ø</a>
30 <section id="requirements"><title>½Ã½ºÅÛ ¿ä±¸»çÇ×</title>
32 <p><cite>IP±â¹Ý</cite>À̶õ ¸»ÀÌ ÀǹÌÇϵíÀÌ ¼¹ö´Â
33 <strong>IP±â¹Ý °¡»óÈ£½ºÆ® °¢°¢¿¡ ´ëÇØ ´Ù¸¥ IP ÁÖ¼Ò¸¦
34 °¡Á®¾ßÇÑ´Ù</strong>. ÀÌ´Â ÄÄÇ»Å͸¦ ¹°¸®ÀûÀ¸·Î ¿©·¯ ³×Æ®¿÷¿¡
35 ¿¬°áÇϰųª, ÃÖ±Ù ¿î¿µÃ¼Á¦¿¡¼ Áö¿øÇÏ´Â °¡»ó ÀÎÅÍÆäÀ̽º¸¦
36 (ÀÚ¼¼ÇÑ ³»¿ëÀº ½Ã½ºÅÛ ¹®¼¸¦ Âü°íÇ϶ó. ÈçÈ÷ "ip aliases"¶ó°í
37 Çϸç, º¸Åë "ifconfig" ¸í·É¾î·Î ¸¸µç´Ù) »ç¿ëÇÏ¿© °¡´ÉÇÏ´Ù.</p>
41 <section id="howto"><title>¾ÆÆÄÄ¡ ¼³Á¤¹æ¹ý</title>
43 <p>¿©·¯ È£½ºÆ®¸¦ Áö¿øÇϵµ·Ï ¾ÆÆÄÄ¡¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº µÎ°¡Áö´Ù.
44 Çϳª´Â °¢ È£½ºÆ®¸¶´Ù º°µµÀÇ À¥¼¹ö¸¦ ½ÇÇàÇÏ´Â
45 ¹ýÀÌ°í, ´Ù¸¥ Çϳª´Â ¸ðµç °¡»óÈ£½ºÆ®¸¦ Áö¿øÇÏ´Â ¼¹ö ÇÑ°³¸¦
46 ½ÇÇàÇÏ´Â ¹æ¹ýÀÌ´Ù.</p>
48 <p>¾ðÁ¦ ¿©·¯ ¼¹ö¸¦ »ç¿ëÇϳª:</p>
51 <li>ȸ»ç2ÀÇ »ç¿ëÀÚ°¡ À¥ÀÌ¿ÜÀÇ ¹æ¹ýÀ¸·Î ȸ»ç1ÀÇ ÀڷḦ ÀÐÀ»
52 ¼ö ¾ø°Ô ÇÏ´Â µî º¸¾È»ó ±¸ºÐÀÌ ÇÊ¿äÇÑ °æ¿ì. ÀÌ °æ¿ì
53 µÎ ¼¹ö¸¦ °¢°¢ ´Ù¸¥ <directive
54 module="mpm_common">User</directive>, <directive
55 module="mpm_common">Group</directive>, <directive
56 module="mpm_common">Listen</directive>, <directive
57 module="core">ServerRoot</directive> ¼³Á¤À¸·Î ½ÇÇàÇØ¾ß ÇÑ´Ù.</li>
59 <li>ÃæºÐÇÑ ¸Þ¸ð¸®°¡ ÀÖ°í, ÄÄÇ»ÅÍÀÇ ¸ðµç IP¸¦ ±â´Ù¸®±âÀ§ÇÑ
60 ÆÄÀϱâ¼úÀÚ(file descriptor) ¿ä±¸»çÇ×µµ ¸¸Á·ÇÑ´Ù. "¿ÍÀϵåÄ«µå"³ª
61 ƯÁ¤ ÁÖ¼Ò¸¦ <directive
62 module="mpm_common">Listen</directive>ÇÒ ¼ö¸¸ ÀÖ´Ù. ±×·¡¼
63 ¾î¶² ÀÌÀ¯¿¡¼°Ç ƯÁ¤ ÁÖ¼Ò¸¦ ±â´Ù¸± ÇÊ¿ä°¡ ÀÖ´Ù¸é, (ÇÑ
64 À¥¼¹ö°¡ ÇÑ ÁÖ¼Ò¸¦ Á¦¿ÜÇÑ ¸ðµç ÁÖ¼Ò¸¦ ±â´Ù¸®°í ´Ù¸¥ ÇÑ
65 À¥¼¹ö°¡ Á¦¿ÜÇÑ ÁÖ¼Ò¸¦ ±â´Ù¸± ¼ö ÀÖÁö¸¸) ÁöÁ¤ÇÑ ÁÖ¼Ò
66 ¸ðµÎ¸¦ ±â´Ù·Á¾ß ÇÑ´Ù.</li>
69 <p>¾ðÁ¦ ¼¹ö ÇÑ°³¸¦ »ç¿ëÇϳª:</p>
72 <li>°¡»óÈ£½ºÆ®µéÀÇ À¥¼¹ö ¼³Á¤À» °øÀ¯ÇÒ ¼ö ÀÖ´Â °æ¿ì.</li>
74 <li>ÄÄÇ»ÅÍ°¡ ¸Å¿ì ¸¹Àº ¿äûÀ» ¼ºñ½ºÇÑ´Ù¸é ¿©·¯ ¼¹ö¸¦
75 ½ÇÇàÇϱ⿡ ¼Óµµ ¼Õ½ÇÀÌ Å¬ ¼ö ÀÖ´Ù.</li>
80 <section id="multiple"><title>¿©·¯ ¼¹ö¸¦ ½ÇÇàÇϱâ</title>
82 <p>°¢ °¡»óÈ£½ºÆ®º°·Î À¥¼¹ö¸¦ ¼³Ä¡ÇÑ´Ù. ¼³Á¤ÆÄÀÏÀÇ
83 <directive module="mpm_common">Listen</directive> Áö½Ã¾î¿¡
84 ¼¹ö°¡ ¼ºñ½ºÇÒ IP ÁÖ¼Ò(ȤÀº °¡»óÈ£½ºÆ®)¸¦ Àû¾îÁØ´Ù. ¿¹¸¦
88 Listen www.smallco.com:80
91 <p>È£½ºÆ®¸í º¸´Ù´Â IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
92 (<a href="../dns-caveats.html">DNS ¹®Á¦</a> Âü°í)</p>
96 <section id="single"><title>¼¹ö Çϳª·Î °¡»óÈ£½ºÆ® ½ÇÇàÇϱâ</title>
98 <p>ÀÌ °æ¿ì À¥¼¹ö ÇÑ°³·Î ÁÖ¼¹ö¿Í ¸ðµç °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ
99 ¿äûÀ» ¼ºñ½ºÇÑ´Ù. ¼³Á¤ÆÄÀÏÀÇ <directive
100 module="core">VirtualHost</directive> Áö½Ã¾î¿¡ °¡»óÈ£½ºÆ®¸¶´Ù
101 ´Ù¸¥ <directive module="core">ServerAdmin</directive>,
102 <directive module="core">ServerName</directive>, <directive
103 module="core">DocumentRoot</directive>, <directive
104 module="core">ErrorLog</directive>, <directive
105 module="mod_log_config">TransferLog</directive>,
106 <directive module="mod_log_config">CustomLog</directive>
107 Áö½Ã¾î °ªÀ» ¼³Á¤ÇÑ´Ù. ¿¹¸¦ µé¸é,</p>
110 <VirtualHost www.smallco.com><br />
111 ServerAdmin webmaster@mail.smallco.com<br />
112 DocumentRoot /groups/smallco/www<br />
113 ServerName www.smallco.com<br />
114 ErrorLog /groups/smallco/logs/error_log<br />
115 TransferLog /groups/smallco/logs/access_log<br />
116 </VirtualHost><br />
118 <VirtualHost www.baygroup.org><br />
119 ServerAdmin webmaster@mail.baygroup.org<br />
120 DocumentRoot /groups/baygroup/www<br />
121 ServerName www.baygroup.org<br />
122 ErrorLog /groups/baygroup/logs/error_log<br />
123 TransferLog /groups/baygroup/logs/access_log<br />
127 <p>È£½ºÆ®¸í º¸´Ù´Â IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
128 (<a href="../dns-caveats.html">DNS ¹®Á¦</a> Âü°í)</p>
130 <p>VirtualHost Áö½Ã¾î ¾È¿¡¼´Â ÇÁ·Î¼¼½º »ý¼º°ú ±âŸ ¸î¸î Áö½Ã¾î¸¦
131 Á¦¿ÜÇÏ°í °ÅÀÇ <strong>¸ðµç</strong> ¼³Á¤Áö½Ã¾î¸¦ »ç¿ëÇÒ
132 ¼ö ÀÖ´Ù. VirtualHost Áö½Ã¾î ¾È¿¡¼ Áö½Ã¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö
133 ¾Ë·Á¸é <a href="../mod/directives.html">Áö½Ã¾î ¸ñ·Ï</a>¿¡¼
134 <a href="../mod/directive-dict.html#Context">»ç¿ëÀå¼Ò</a>¸¦
137 <p><a href="../suexec.html">suEXEC ÇÁ·Î±×·¥</a>À»
138 »ç¿ëÇÑ´Ù¸é VirtualHost Áö½Ã¾î ¾È¿¡ <directive
139 module="mpm_common">User</directive>¿Í <directive
140 module="mpm_common">Group</directive>À» »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
142 <p><em>º¸¾È:</em> ¼¹ö¸¦ ½ÇÇàÇÏ´Â »ç¿ëÀÚ¿Ü¿¡ ´Ù¸¥ »ç¶÷¿¡°Ô
143 ·Î±×ÆÄÀÏÀÌ ÀÖ´Â µð·ºÅ丮ÀÇ ¾²±â±ÇÇÑÀÌ ÀÖ´Ù¸é º¸¾È
144 ¹®Á¦¸¦ Á¶½ÉÇ϶ó. ÀÚ¼¼ÇÑ ³»¿ëÀº <a
145 href="../misc/security_tips.html">º¸¾È ÆÁ</a>À» Âü°íÇ϶ó.</p>