blob: 63d96bc482870d0c8d5cf8baa6376e7eb6f11c89 [file]
<?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: 1816110:1933438 (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="bind.xml.meta">
<title>ÁÖ¼Ò¿Í Æ÷Æ® ÁöÁ¤ (Binding)</title>
<summary>
<p>Apache HTTP Server°¡ ƯÁ¤ ÁÖ¼Ò¿Í Æ÷Æ®¿¡¼­ ¼ö½ÅÇϵµ·Ï ¼³Á¤ÇÕ´Ï´Ù.</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>httpd´Â ½ÃÀÛÇÒ ¶§ ·ÎÄà ¸Ó½ÅÀÇ Æ¯Á¤ Æ÷Æ®¿Í ÁÖ¼Ò¿¡ ¿¬°á(bind)Çϰí
µé¾î¿À´Â ¿äûÀ» ±â´Ù¸³´Ï´Ù. ±âº»ÀûÀ¸·Î ¸Ó½ÅÀÇ ¸ðµç ÁÖ¼Ò¿¡¼­
¼ö½ÅÇÕ´Ï´Ù. ±×·¯³ª ƯÁ¤ Æ÷Æ®¿¡¼­¸¸ ¼ö½ÅÇϰųª, ¼±ÅÃÇÑ ÁÖ¼Ò¿¡¼­¸¸
¼ö½ÅÇϰųª, µÎ °¡Áö¸¦ Á¶ÇÕÇϵµ·Ï ¼³Á¤ÇØ¾ß ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ±â´ÉÀº
<code>httpd</code>°¡ ¼­·Î ´Ù¸¥ IP ÁÖ¼Ò, È£½ºÆ®¸í, Æ÷Æ®¿¡ ¾î¶»°Ô
ÀÀ´äÇÒÁö °áÁ¤ÇÏ´Â <a href="vhosts/">°¡»óÈ£½ºÆ®</a> ±â´É°ú ÇÔ²²
»ç¿ëÇÏ´Â °æ¿ì°¡ ¸¹½À´Ï´Ù.</p>
<p><directive module="mpm_common">Listen</directive> Áö½Ã¾î´Â
¼­¹ö°¡ ÁöÁ¤ÇÑ Æ÷Æ® ¶Ç´Â ÁÖ¼Ò¿Í Æ÷Æ® Á¶ÇÕ¿¡¼­¸¸ µé¾î¿À´Â ¿äûÀ»
¹Þ¾ÆµéÀ̵µ·Ï ÇÕ´Ï´Ù. <directive module="mpm_common">Listen</directive>
Áö½Ã¾î¿¡ Æ÷Æ® ¹øÈ£¸¸ ÁöÁ¤ÇÏ¸é ¼­¹ö´Â ¸ðµç ÀÎÅÍÆäÀ̽º¿¡¼­ ÇØ´ç
Æ÷Æ®¸¦ ¼ö½ÅÇÕ´Ï´Ù. IP ÁÖ¼Ò¿Í Æ÷Æ®¸¦ ÇÔ²² ÁöÁ¤ÇÏ¸é ¼­¹ö´Â ÇØ´ç
Æ÷Æ®¿Í ÀÎÅÍÆäÀ̽º¿¡¼­ ¼ö½ÅÇÕ´Ï´Ù. ¿©·¯ °³ÀÇ
<directive module="mpm_common">Listen</directive> Áö½Ã¾î¸¦ »ç¿ëÇÏ¿©
¼ö½ÅÇÒ ÁÖ¼Ò¿Í Æ÷Æ®¸¦ ¿©·¯ °³ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¼­¹ö´Â ³ª¿­µÈ
ÁÖ¼Ò¿Í Æ÷Æ®¿¡¼­ µé¾î¿À´Â ¸ðµç ¿äû¿¡ ÀÀ´äÇÕ´Ï´Ù.</p>
<p>¿¹¸¦ µé¾î, ¸ðµç ÀÎÅÍÆäÀ̽º¿¡¼­ 80¹ø Æ÷Æ®¿Í 8000¹ø Æ÷Æ® ¸ðµÎ¿¡¼­
¿¬°áÀ» ¹Þ¾ÆµéÀÌ·Á¸é ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÕ´Ï´Ù:</p>
<example>
<highlight language="config">
Listen 80
Listen 8000
</highlight>
</example>
<p>ÇÑ ÀÎÅÍÆäÀ̽º¿¡¼­´Â 80¹ø Æ÷Æ®·Î, ´Ù¸¥ ÀÎÅÍÆäÀ̽º¿¡¼­´Â 8000¹ø
Æ÷Æ®·Î ¿¬°áÀ» ¹Þ¾ÆµéÀÌ·Á¸é ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÕ´Ï´Ù:</p>
<example>
<highlight language="config">
Listen 192.0.2.1:80
Listen 192.0.2.5:8000
</highlight>
</example>
<p>IPv6 ÁÖ¼Ò´Â ´ÙÀ½ ¿¹¿Í °°ÀÌ ´ë°ýÈ£·Î °¨½Î¾ß ÇÕ´Ï´Ù:</p>
<example>
<highlight language="config">
Listen [2001:db8::a00:20ff:fea7:ccea]:80
</highlight>
</example>
<note type="warning"><p><directive
module="mpm_common">Listen</directive> Áö½Ã¾î°¡ Áߺ¹µÇ¸é
¼­¹ö ½ÃÀÛÀ» ¸·´Â Ä¡¸íÀûÀÎ ¿À·ù°¡ ¹ß»ýÇÕ´Ï´Ù.</p>
<example>
(48)Address already in use: make_sock: could not bind to address [::]:80
</example>
<p>Ãß°¡ ¹®Á¦ ÇØ°á ¹æ¹ýÀº <a
href="http://wiki.apache.org/httpd/CouldNotBindToAddress">À§Å°ÀÇ
°ü·Ã ¹®¼­</a>¸¦ Âü°íÇϽʽÿÀ.</p>
</note>
</section>
<section id="reload">
<title>Àç½ÃÀ۽à Listen ¼³Á¤ º¯°æ</title>
<p>httpd¸¦ Àç½ÃÀÛÇÒ ¶§ <directive module="mpm_common">Listen</directive>
Áö½Ã¾îÀÇ º¯°æ »çÇ׿¡ ´ëÇØ Ưº°È÷ ÁÖÀÇÇØ¾ß ÇÕ´Ï´Ù. Àç½ÃÀÛ Áß¿¡ httpd´Â
¼­¹ö¿¡ ´ëÇÑ »õ·Î¿î ¿¬°á ½Ãµµ¿¡¼­ "Connection refused" ¿À·ù°¡ ¹ß»ýÇÏÁö
¾Êµµ·Ï (¿ø·¡ ¼³Á¤´ë·Î) Æ÷Æ®¸¦ ¹ÙÀεùÇÑ »óÅ·ΠÀ¯ÁöÇÕ´Ï´Ù. »ç¿ë ÁßÀÎ
<directive module="mpm_common">Listen</directive> Áö½Ã¾î°¡ ÀÌÀü ¼³Á¤°ú
Ãæµ¹Çϵµ·Ï º¯°æµÇ¸é ¼³Á¤ÀÌ ½ÇÆÐÇÏ°í ¼­¹ö°¡ Á¾·áµË´Ï´Ù.</p>
<p>¿¹¸¦ µé¾î, ´ÙÀ½ ¼³Á¤¿¡¼­:</p>
<example>
<highlight language="config">
Listen 127.0.0.1:80
</highlight>
</example>
<p>´ÙÀ½°ú °°ÀÌ º¯°æÇÏ¸é ½ÇÆÐÇÒ ¼ö ÀÖ½À´Ï´Ù. ¸ðµç ÁÖ¼Ò¿¡¼­ 80¹ø
Æ÷Æ®¿¡ ¹ÙÀεùÇÏ´Â °ÍÀÌ 127.0.0.1¿¡¼­¸¸ 80¹ø Æ÷Æ®¿¡ ¹ÙÀεùÇÏ´Â
°Í°ú Ãæµ¹Çϱ⠶§¹®ÀÔ´Ï´Ù.</p>
<example>
<highlight language="config">
Listen 80
</highlight>
</example>
<p>ÀÌ·¯ÇÑ ¼³Á¤ º¯°æÀ» Àû¿ëÇÏ·Á¸é ¼­¹ö¸¦ ÁßÁöÇÑ ÈÄ ´Ù½Ã ½ÃÀÛÇØ¾ß
ÇÕ´Ï´Ù.</p>
</section>
<section id="ipv6">
<title>IPv6 Ưº° °í·Á»çÇ×</title>
<p>Á¡Á¡ ´õ ¸¹Àº Ç÷§ÆûÀÌ IPv6¸¦ ±¸ÇöÇϰí ÀÖÀ¸¸ç,
<glossary>APR</glossary>Àº ÀÌ·¯ÇÑ Ç÷§Æû ´ëºÎºÐ¿¡¼­ IPv6¸¦
Áö¿øÇϹǷΠhttpd°¡ IPv6 ¼ÒÄÏÀ» ÇÒ´çÇϰí IPv6¸¦ ÅëÇØ Àü¼ÛµÈ
¿äûÀ» ó¸®ÇÒ ¼ö ÀÖ½À´Ï´Ù.</p>
<p>httpd °ü¸®ÀÚ¿¡°Ô º¹ÀâÇÑ ¿ä¼Ò Áß Çϳª´Â IPv6 ¼ÒÄÏÀÌ IPv4
¿¬°á°ú IPv6 ¿¬°áÀ» ¸ðµÎ ó¸®ÇÒ ¼ö ÀÖ´ÂÁö ¿©ºÎÀÔ´Ï´Ù. IPv6
¼ÒÄÏÀ¸·Î IPv4 ¿¬°áÀ» ó¸®ÇÏ·Á¸é IPv4 ¸ÅÇÎ IPv6 ÁÖ¼Ò¸¦
»ç¿ëÇϴµ¥, ´ëºÎºÐÀÇ Ç÷§Æû¿¡¼­´Â ±âº»ÀûÀ¸·Î Çã¿ëµÇÁö¸¸
FreeBSD, NetBSD, OpenBSD¿¡¼­´Â ÇØ´ç Ç÷§ÆûÀÇ ½Ã½ºÅÛ Àüü
Á¤Ã¥¿¡ ¸ÂÃß¾î ±âº»ÀûÀ¸·Î Çã¿ëµÇÁö ¾Ê½À´Ï´Ù. ±âº»ÀûÀ¸·Î
Çã¿ëµÇÁö ¾Ê´Â ½Ã½ºÅÛ¿¡¼­´Â Ưº°ÇÑ <program>configure</program>
¸Å°³º¯¼ö·Î httpdÀÇ ÀÌ µ¿ÀÛÀ» º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù.</p>
<p>¹Ý¸é¿¡ Linux¿Í Tru64 °°Àº ÀϺΠÇ÷§Æû¿¡¼­´Â IPv6¿Í IPv4¸¦
¸ðµÎ ó¸®ÇÏ´Â <strong>À¯ÀÏÇÑ</strong> ¹æ¹ýÀÌ ¸ÅÇÎ ÁÖ¼Ò¸¦
»ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù. <code>httpd</code>°¡ ÃÖ¼ÒÇÑÀÇ ¼ÒÄÏÀ¸·Î IPv4¿Í
IPv6 ¿¬°áÀ» ¸ðµÎ ó¸®Çϵµ·Ï ÇÏ·Á¸é IPv4 ¸ÅÇÎ IPv6 ÁÖ¼Ò¸¦
»ç¿ëÇØ¾ß Çϸç, <code>--enable-v4-mapped</code>
<program>configure</program> ¿É¼ÇÀ» ÁöÁ¤ÇϽʽÿÀ.</p>
<p><code>--enable-v4-mapped</code>´Â FreeBSD, NetBSD, OpenBSD¸¦
Á¦¿ÜÇÑ ¸ðµç Ç÷§Æû¿¡¼­ ±âº»°ªÀ̹ǷÎ, ¾Æ¸¶µµ ¿©·¯ºÐÀÇ httpd´Â
ÀÌ·¸°Ô ºôµåµÇ¾úÀ» °ÍÀÔ´Ï´Ù.</p>
<p>Ç÷§Æû°ú APRÀÇ Áö¿ø ¿©ºÎ¿¡ °ü°è¾øÀÌ httpd°¡ IPv4 ¿¬°á¸¸
ó¸®Çϵµ·Ï ÇÏ·Á¸é ´ÙÀ½ ¿¹¿Í °°ÀÌ ¸ðµç
<directive module="mpm_common">Listen</directive> Áö½Ã¾î¿¡
IPv4 ÁÖ¼Ò¸¦ ÁöÁ¤ÇϽʽÿÀ:</p>
<example>
<highlight language="config">
Listen 0.0.0.0:80
Listen 192.0.2.1:80
</highlight>
</example>
<p>Ç÷§ÆûÀÌ Áö¿øÇϰí httpd°¡ º°µµÀÇ ¼ÒÄÏ¿¡¼­ IPv4¿Í IPv6
¿¬°áÀ» ó¸®Çϵµ·Ï ÇÏ·Á¸é (Áï, IPv4 ¸ÅÇÎ ÁÖ¼Ò¸¦ ºñȰ¼ºÈ­ÇÏ·Á¸é)
<code>--disable-v4-mapped</code>
<program>configure</program> ¿É¼ÇÀ» ÁöÁ¤ÇϽʽÿÀ.
<code>--disable-v4-mapped</code>´Â FreeBSD, NetBSD,
OpenBSD¿¡¼­ ±âº»°ªÀÔ´Ï´Ù.</p>
</section>
<section id="protocol">
<title>Listen¿¡¼­ ÇÁ·ÎÅäÄÝ ÁöÁ¤</title>
<p><directive module="mpm_common">Listen</directive>ÀÇ ¼±ÅÃÀûÀÎ
µÎ ¹øÂ° <var>protocol</var> Àμö´Â ´ëºÎºÐÀÇ ¼³Á¤¿¡¼­ ÇÊ¿äÇÏÁö
¾Ê½À´Ï´Ù. ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é 443¹ø Æ÷Æ®¿¡´Â <code>https</code>°¡,
´Ù¸¥ ¸ðµç Æ÷Æ®¿¡´Â <code>http</code>°¡ ±âº»°ªÀ¸·Î »ç¿ëµË´Ï´Ù.
ÇÁ·ÎÅäÄÝÀº ¾î¶² ¸ðµâÀÌ ¿äûÀ» ó¸®ÇÒÁö °áÁ¤Çϰí,
<directive module="core">AcceptFilter</directive> Áö½Ã¾î·Î
ÇÁ·ÎÅäÄݺ° ÃÖÀûÈ­¸¦ Àû¿ëÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù.</p>
<p>ºñÇ¥ÁØ Æ÷Æ®¿¡¼­ ½ÇÇàÇÏ´Â °æ¿ì¿¡¸¸ ÇÁ·ÎÅäÄÝÀ» ¼³Á¤ÇÏ¸é µË´Ï´Ù.
¿¹¸¦ µé¾î, 8443¹ø Æ÷Æ®¿¡¼­ <code>https</code> »çÀÌÆ®¸¦ ½ÇÇàÇÏ´Â
°æ¿ì:</p>
<example>
<highlight language="config">
Listen 192.170.2.1:8443 https
</highlight>
</example>
</section>
<section id="virtualhost">
<title>°¡»óÈ£½ºÆ®¿ÍÀÇ °ü°è</title>
<p><directive module="mpm_common">Listen</directive> Áö½Ã¾î´Â
°¡»óÈ£½ºÆ®¸¦ ±¸ÇöÇÏÁö ¾ÊÀ¸¸ç, ÁÖ ¼­¹ö°¡ ¾î¶² ÁÖ¼Ò¿Í Æ÷Æ®¿¡¼­
¼ö½ÅÇÒÁö¸¸ ÁöÁ¤ÇÕ´Ï´Ù.
<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>