<?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: 106090:421174 (outdated) -->

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You 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="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>
    &lt;VirtualHost www.smallco.com&gt;<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 />
    &lt;/VirtualHost&gt;<br />
		<br />
    &lt;VirtualHost www.baygroup.org&gt;<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 />
    &lt;/VirtualHost&gt;
		</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>
