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: 105989:1784325 (outdated) -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <manualpage metafile="ip-based.xml.meta">
24 <parentdocument href="./">°¡»óÈ£½ºÆ®</parentdocument>
25 <title>¾ÆÆÄÄ¡ IP±â¹Ý °¡»óÈ£½ºÆ® Áö¿ø</title>
28 <a href="name-based.html">À̸§±â¹Ý °¡»óÈ£½ºÆ® Áö¿ø</a>
31 <section id="requirements"><title>½Ã½ºÅÛ ¿ä±¸»çÇ×</title>
33 <p><cite>IP±â¹Ý</cite>À̶õ ¸»ÀÌ ÀǹÌÇϵíÀÌ ¼¹ö´Â
34 <strong>IP±â¹Ý °¡»óÈ£½ºÆ® °¢°¢¿¡ ´ëÇØ ´Ù¸¥ IP ÁÖ¼Ò¸¦
35 °¡Á®¾ßÇÑ´Ù</strong>. ÀÌ´Â ÄÄÇ»Å͸¦ ¹°¸®ÀûÀ¸·Î ¿©·¯ ³×Æ®¿÷¿¡
36 ¿¬°áÇϰųª, ÃÖ±Ù ¿î¿µÃ¼Á¦¿¡¼ Áö¿øÇÏ´Â °¡»ó ÀÎÅÍÆäÀ̽º¸¦
37 (ÀÚ¼¼ÇÑ ³»¿ëÀº ½Ã½ºÅÛ ¹®¼¸¦ Âü°íÇ϶ó. ÈçÈ÷ "ip aliases"¶ó°í
38 Çϸç, º¸Åë "ifconfig" ¸í·É¾î·Î ¸¸µç´Ù) »ç¿ëÇÏ¿© °¡´ÉÇÏ´Ù.</p>
42 <section id="howto"><title>¾ÆÆÄÄ¡ ¼³Á¤¹æ¹ý</title>
44 <p>¿©·¯ È£½ºÆ®¸¦ Áö¿øÇϵµ·Ï ¾ÆÆÄÄ¡¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº µÎ°¡Áö´Ù.
45 Çϳª´Â °¢ È£½ºÆ®¸¶´Ù º°µµÀÇ À¥¼¹ö¸¦ ½ÇÇàÇÏ´Â
46 ¹ýÀÌ°í, ´Ù¸¥ Çϳª´Â ¸ðµç °¡»óÈ£½ºÆ®¸¦ Áö¿øÇÏ´Â ¼¹ö ÇÑ°³¸¦
47 ½ÇÇàÇÏ´Â ¹æ¹ýÀÌ´Ù.</p>
49 <p>¾ðÁ¦ ¿©·¯ ¼¹ö¸¦ »ç¿ëÇϳª:</p>
52 <li>ȸ»ç2ÀÇ »ç¿ëÀÚ°¡ À¥ÀÌ¿ÜÀÇ ¹æ¹ýÀ¸·Î ȸ»ç1ÀÇ ÀڷḦ ÀÐÀ»
53 ¼ö ¾ø°Ô ÇÏ´Â µî º¸¾È»ó ±¸ºÐÀÌ ÇÊ¿äÇÑ °æ¿ì. ÀÌ °æ¿ì
54 µÎ ¼¹ö¸¦ °¢°¢ ´Ù¸¥ <directive
55 module="mpm_common">User</directive>, <directive
56 module="mpm_common">Group</directive>, <directive
57 module="mpm_common">Listen</directive>, <directive
58 module="core">ServerRoot</directive> ¼³Á¤À¸·Î ½ÇÇàÇØ¾ß ÇÑ´Ù.</li>
60 <li>ÃæºÐÇÑ ¸Þ¸ð¸®°¡ ÀÖ°í, ÄÄÇ»ÅÍÀÇ ¸ðµç IP¸¦ ±â´Ù¸®±âÀ§ÇÑ
61 ÆÄÀϱâ¼úÀÚ(file descriptor) ¿ä±¸»çÇ×µµ ¸¸Á·ÇÑ´Ù. "¿ÍÀϵåÄ«µå"³ª
62 ƯÁ¤ ÁÖ¼Ò¸¦ <directive
63 module="mpm_common">Listen</directive>ÇÒ ¼ö¸¸ ÀÖ´Ù. ±×·¡¼
64 ¾î¶² ÀÌÀ¯¿¡¼°Ç ƯÁ¤ ÁÖ¼Ò¸¦ ±â´Ù¸± ÇÊ¿ä°¡ ÀÖ´Ù¸é, (ÇÑ
65 À¥¼¹ö°¡ ÇÑ ÁÖ¼Ò¸¦ Á¦¿ÜÇÑ ¸ðµç ÁÖ¼Ò¸¦ ±â´Ù¸®°í ´Ù¸¥ ÇÑ
66 À¥¼¹ö°¡ Á¦¿ÜÇÑ ÁÖ¼Ò¸¦ ±â´Ù¸± ¼ö ÀÖÁö¸¸) ÁöÁ¤ÇÑ ÁÖ¼Ò
67 ¸ðµÎ¸¦ ±â´Ù·Á¾ß ÇÑ´Ù.</li>
70 <p>¾ðÁ¦ ¼¹ö ÇÑ°³¸¦ »ç¿ëÇϳª:</p>
73 <li>°¡»óÈ£½ºÆ®µéÀÇ À¥¼¹ö ¼³Á¤À» °øÀ¯ÇÒ ¼ö ÀÖ´Â °æ¿ì.</li>
75 <li>ÄÄÇ»ÅÍ°¡ ¸Å¿ì ¸¹Àº ¿äûÀ» ¼ºñ½ºÇÑ´Ù¸é ¿©·¯ ¼¹ö¸¦
76 ½ÇÇàÇϱ⿡ ¼Óµµ ¼Õ½ÇÀÌ Å¬ ¼ö ÀÖ´Ù.</li>
81 <section id="multiple"><title>¿©·¯ ¼¹ö¸¦ ½ÇÇàÇϱâ</title>
83 <p>°¢ °¡»óÈ£½ºÆ®º°·Î À¥¼¹ö¸¦ ¼³Ä¡ÇÑ´Ù. ¼³Á¤ÆÄÀÏÀÇ
84 <directive module="mpm_common">Listen</directive> Áö½Ã¾î¿¡
85 ¼¹ö°¡ ¼ºñ½ºÇÒ IP ÁÖ¼Ò(ȤÀº °¡»óÈ£½ºÆ®)¸¦ Àû¾îÁØ´Ù. ¿¹¸¦
89 Listen www.smallco.com:80
92 <p>È£½ºÆ®¸í º¸´Ù´Â IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
93 (<a href="../dns-caveats.html">DNS ¹®Á¦</a> Âü°í)</p>
97 <section id="single"><title>¼¹ö Çϳª·Î °¡»óÈ£½ºÆ® ½ÇÇàÇϱâ</title>
99 <p>ÀÌ °æ¿ì À¥¼¹ö ÇÑ°³·Î ÁÖ¼¹ö¿Í ¸ðµç °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ
100 ¿äûÀ» ¼ºñ½ºÇÑ´Ù. ¼³Á¤ÆÄÀÏÀÇ <directive
101 module="core">VirtualHost</directive> Áö½Ã¾î¿¡ °¡»óÈ£½ºÆ®¸¶´Ù
102 ´Ù¸¥ <directive module="core">ServerAdmin</directive>,
103 <directive module="core">ServerName</directive>, <directive
104 module="core">DocumentRoot</directive>, <directive
105 module="core">ErrorLog</directive>, <directive
106 module="mod_log_config">TransferLog</directive>,
107 <directive module="mod_log_config">CustomLog</directive>
108 Áö½Ã¾î °ªÀ» ¼³Á¤ÇÑ´Ù. ¿¹¸¦ µé¸é,</p>
111 <VirtualHost www.smallco.com><br />
112 ServerAdmin webmaster@mail.smallco.com<br />
113 DocumentRoot /groups/smallco/www<br />
114 ServerName www.smallco.com<br />
115 ErrorLog /groups/smallco/logs/error_log<br />
116 TransferLog /groups/smallco/logs/access_log<br />
117 </VirtualHost><br />
119 <VirtualHost www.baygroup.org><br />
120 ServerAdmin webmaster@mail.baygroup.org<br />
121 DocumentRoot /groups/baygroup/www<br />
122 ServerName www.baygroup.org<br />
123 ErrorLog /groups/baygroup/logs/error_log<br />
124 TransferLog /groups/baygroup/logs/access_log<br />
128 <p>È£½ºÆ®¸í º¸´Ù´Â IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ±æ ¹Ù¶õ´Ù.
129 (<a href="../dns-caveats.html">DNS ¹®Á¦</a> Âü°í)</p>
131 <p>VirtualHost Áö½Ã¾î ¾È¿¡¼´Â ÇÁ·Î¼¼½º »ý¼º°ú ±âŸ ¸î¸î Áö½Ã¾î¸¦
132 Á¦¿ÜÇÏ°í °ÅÀÇ <strong>¸ðµç</strong> ¼³Á¤Áö½Ã¾î¸¦ »ç¿ëÇÒ
133 ¼ö ÀÖ´Ù. VirtualHost Áö½Ã¾î ¾È¿¡¼ Áö½Ã¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´ÂÁö
134 ¾Ë·Á¸é <a href="../mod/directives.html">Áö½Ã¾î ¸ñ·Ï</a>¿¡¼
135 <a href="../mod/directive-dict.html#Context">»ç¿ëÀå¼Ò</a>¸¦
138 <p><a href="../suexec.html">suEXEC ÇÁ·Î±×·¥</a>À»
139 »ç¿ëÇÑ´Ù¸é VirtualHost Áö½Ã¾î ¾È¿¡ <directive
140 module="mpm_common">User</directive>¿Í <directive
141 module="mpm_common">Group</directive>À» »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
143 <p><em>º¸¾È:</em> ¼¹ö¸¦ ½ÇÇàÇÏ´Â »ç¿ëÀÚ¿Ü¿¡ ´Ù¸¥ »ç¶÷¿¡°Ô
144 ·Î±×ÆÄÀÏÀÌ ÀÖ´Â µð·ºÅ丮ÀÇ ¾²±â±ÇÇÑÀÌ ÀÖ´Ù¸é º¸¾È
145 ¹®Á¦¸¦ Á¶½ÉÇ϶ó. ÀÚ¼¼ÇÑ ³»¿ëÀº <a
146 href="../misc/security_tips.html">º¸¾È ÆÁ</a>À» Âü°íÇ϶ó.</p>