|  | <?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: 105989:1781930 (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="examples.xml.meta"> | 
|  | <parentdocument href="./">°¡»óÈ£½ºÆ®</parentdocument> | 
|  | <title>°¡»óÈ£½ºÆ® ¿¹</title> | 
|  |  | 
|  | <summary> | 
|  |  | 
|  | <p>ÀÌ ¹®¼´Â ÀÚÁÖ ¹®ÀǵǴ °¡»óÈ£½ºÆ® | 
|  | Áú¹®¿¡ ´äÀ» ÇÏ·Á°í ¾²¿©Á³´Ù. »óȲÀº <a | 
|  | href="name-based.html">À̸§±â¹Ý</a>À̳ª <a | 
|  | href="ip-based.html">IP±â¹Ý</a> °¡»óÈ£½ºÆ®¸¦ ÅëÇØ ÇÑ ¼¹ö¿¡¼ | 
|  | ¿©·¯ À¥»çÀÌÆ®¸¦ ¼ºñ½ºÇÏ·Á´Â °æ¿ìÀÌ´Ù. ÇÑ ÇÁ·Ï½Ã ¼¹ö µÚ¿¡¼ | 
|  | ¿©·¯ ¼¹ö¸¦ »ç¿ëÇÏ¿© »çÀÌÆ®¸¦ ¿î¿µÇÏ´Â °æ¿ì¸¦ ´Ù·é ¹®¼µµ | 
|  | °ð ³ª¿Ã °ÍÀÌ´Ù.</p> | 
|  |  | 
|  | </summary> | 
|  |  | 
|  | <section id="purename"><title>IP ÁÖ¼Ò ÇѰ³¿¡ ¿©·¯ À̸§±â¹Ý | 
|  | À¥»çÀÌÆ® ¿î¿µÇϱâ.</title> | 
|  |  | 
|  | <p>¼¹ö¿¡ IP ÁÖ¼Ò°¡ ÇѰ³ ÀÖ°í, DNS¿¡¼ ¿©·¯ ÁÖ¼Ò(CNAMES)°¡ | 
|  | ÀÌ ÄÄÇ»Å͸¦ °¡¸®Å²´Ù. ÀÌ ÄÄÇ»ÅÍ¿¡¼ <code>www.example.com</code>°ú | 
|  | <code>www.example.org</code>ÀÇ À¥¼¹ö¸¦ ½ÇÇàÇÏ°í ½Í´Ù.</p> | 
|  |  | 
|  | <note><title>Note</title><p>¾ÆÆÄÄ¡ ¼¹ö¿¡ °¡»óÈ£½ºÆ® ¼³Á¤À» | 
|  | ÇÑ´Ù°í ±× È£½ºÆ®¸í¿¡ ´ëÇÑ DNS Ç׸ñÀÌ ÀÚµ¿ÀÌ·Î »ý¼ºµÇÁö | 
|  | ¾Ê´Â´Ù. <em>¹Ýµå½Ã</em> DNS¿¡ IP ÁÖ¼Ò¸¦ °¡¸®Å°´Â | 
|  | À̸§ÀÌ ÀÖ¾î¾ß ÇÑ´Ù. ¾È±×·¯¸é ¾Æ¹«µµ À¥»çÀÌÆ®¸¦ º¼ | 
|  | ¼ö ¾ø´Ù. °Ë»çÇØº¸±â À§ÇØ <code>hosts</code> ÆÄÀÏ¿¡ Ç׸ñÀ» | 
|  | Ãß°¡ÇÒ ¼ö ÀÖÁö¸¸, ÀÌ´Â hosts Ç׸ñÀ» °¡Áø ÄÄÇ»ÅÍ¿¡¸¸ | 
|  | ¹Ý¿µµÈ´Ù.</p> | 
|  | </note> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | # ¾ÆÆÄÄ¡°¡ Æ÷Æ® 80À» ±â´Ù¸°´Ù<br /> | 
|  | Listen 80<br /> | 
|  | <br /> | 
|  | # ¸ðµç IP ÁÖ¼Ò¿¡¼ °¡»óÈ£½ºÆ® ¿äûÀ» ±â´Ù¸°´Ù<br /> | 
|  | NameVirtualHost *:80<br /> | 
|  | <br /> | 
|  | <VirtualHost *:80><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example1<br /> | 
|  | ServerName www.example.com<br /> | 
|  | <br /> | 
|  | # ´Ù¸¥ Áö½Ã¾îµéµµ ÀÖ´Ù<br /> | 
|  | <br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost *:80><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2<br /> | 
|  | ServerName www.example.org<br /> | 
|  | <br /> | 
|  | # ´Ù¸¥ Áö½Ã¾îµéµµ ÀÖ´Ù<br /> | 
|  | <br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p>º°Ç¥´Â ¸ðµç ÁÖ¼Ò¸¦ °¡¸®Å°¹Ç·Î, ÁÖ¼¹ö´Â ¾î¶² ¿äûµµ | 
|  | ¼ºñ½ºÇÏÁö ¾Ê´Â´Ù. <code>www.example.com</code>ÀÌ | 
|  | ¼³Á¤ÆÄÀÏ¿¡ óÀ½À¸·Î ³ª¿À¹Ç·Î °¡Àå ³ôÀº ¿ì¼±¼øÀ§¸¦ °¡Áö¸ç, | 
|  | <cite>±âº»</cite>ȤÀº <cite>Ãʱâ</cite> ¼¹ö°¡ µÈ´Ù. | 
|  | ¾î¶² <code>ServerName</code> Áö½Ã¾î¿¡µµ ÇØ´çµÇÁö¾Ê´Â ¿äûÀº | 
|  | ù¹øÂ° <code>VirtualHost</code>°¡ ¼ºñ½ºÇÑ´Ù.</p> | 
|  |  | 
|  | <note> | 
|  | <title>ÁÖÀÇ</title> | 
|  |  | 
|  | <p>¿øÇÑ´Ù¸é <code>*</code> ´ë½Å ½Ã½ºÅÛÀÇ ½ÇÁ¦ IP | 
|  | ÁÖ¼Ò¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù. ÀÌ °æ¿ì | 
|  | <code>VirtualHost</code>ÀÇ ¾Æ±Ô¸ÕÆ®´Â | 
|  | <code>NameVirtualHost</code>ÀÇ ¾Æ±Ô¸ÕÆ®¿Í ÀÏÄ¡ÇØ¾ß | 
|  | <em>ÇÑ´Ù</em>:</p> | 
|  |  | 
|  | <example> | 
|  | NameVirtualHost 172.20.30.40<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | # »ý·« ... | 
|  | </example> | 
|  |  | 
|  | <p>±×·¯³ª ISP¿¡¼ µ¿ÀûÀ¸·Î IP ÁÖ¼Ò¸¦ °¡Á®¿À´Â µî | 
|  | IP ÁÖ¼Ò¸¦ ¸ð¸£´Â °æ¿ì¿¡´Â <code>*</code>¸¦ »ç¿ëÇÏ´Â | 
|  | °ÍÀÌ À¯¿ëÇÏ´Ù. <code>*</code>´Â ¸ðµç IP ÁÖ¼Ò¿¡ | 
|  | ÇØ´çÇϹǷÎ, IP ÁÖ¼Ò°¡ º¯°æµÇ¾îµµ ¼³Á¤À» º¯°æÇÒ | 
|  | Çʿ䰡 ¾ø´Ù.</p> | 
|  | </note> | 
|  |  | 
|  | <p>°ÅÀÇ ´ëºÎºÐÀÇ À̸§±â¹Ý °¡»óÈ£½ºÆ® ¼³Á¤Àº À§¿Í °°´Ù. | 
|  | ¿¹¿Ü´Â ´Ù¸¥ IP ÁÖ¼Ò³ª Æ÷Æ®·Î ´Ù¸¥ ³»¿ëÀ» ¼ºñ½ºÇÏ·Á´Â | 
|  | °æ¿ìÀÌ´Ù.</p> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="twoips"><title>¿©·¯ IP ÁÖ¼Ò¿¡¼ À̸§±â¹Ý | 
|  | È£½ºÆ®.</title> | 
|  |  | 
|  | <note> | 
|  | <title>ÁÖÀÇ</title><p>¿©±â¼ ¼³¸íÇÑ ¹æ¹ýÀº IP ÁÖ¼Ò°¡ | 
|  | ¸î°³¶óµµ Àû¿ë°¡´ÉÇÏ´Ù.</p> | 
|  | </note> | 
|  |  | 
|  | <p>¼¹ö´Â IP ÁÖ¼Ò°¡ µÎ°³ÀÖ´Ù. Çϳª¿¡¼ | 
|  | (<code>172.20.30.40</code>) "ÁÖ" ¼¹ö | 
|  | <code>server.domain.com</code>À» ¼ºñ½ºÇϰí, ´Ù¸¥ Çϳª¿¡¼ | 
|  | (<code>172.20.30.50</code>) ¿©·¯ °¡»óÈ£½ºÆ®¸¦ ¼ºñ½ºÇÒ | 
|  | °ÍÀÌ´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | Listen 80<br /> | 
|  | <br /> | 
|  | # 172.20.30.40¿¡¼ ½ÇÇàÇÏ´Â "ÁÖ"¼¹öÀÌ´Ù<br /> | 
|  | ServerName server.domain.com<br /> | 
|  | DocumentRoot /www/mainserver<br /> | 
|  | <br /> | 
|  | # ´Ù¸¥ ÁÖ¼Ò´Ù<br /> | 
|  | NameVirtualHost 172.20.30.50<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.50><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example1<br /> | 
|  | ServerName www.example.com<br /> | 
|  | <br /> | 
|  | # ´Ù¸¥ Áö½Ã¾îµéµµ ÀÖ´Ù ...<br /> | 
|  | <br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.50><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2<br /> | 
|  | ServerName www.example.org<br /> | 
|  | <br /> | 
|  | # ´Ù¸¥ Áö½Ã¾îµéµµ ÀÖ´Ù ...<br /> | 
|  | <br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p><code>172.20.30.50</code>ÀÌ ¾Æ´Ñ ÁÖ¼Ò¿¡ ´ëÇÑ ¿äûÀº | 
|  | ÁÖ¼¹ö°¡ ¼ºñ½ºÇÑ´Ù. È£½ºÆ®¸í ¾øÀÌ, Áï <code>Host:</code> | 
|  | Çì´õ¾øÀÌ <code>172.20.30.50</code>·Î ¿äûÇϸé | 
|  | <code>www.example.com</code>ÀÌ ¼ºñ½ºÇÑ´Ù.</p> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="intraextra"><title>(³»ºÎ¿Í ¿ÜºÎ ÁÖ¼Ò¿Í °°ÀÌ) | 
|  | ´Ù¸¥ IP ÁÖ¼Ò·Î °°Àº ³»¿ëÀ» ¼ºñ½ºÇϱâ.</title> | 
|  |  | 
|  | <p>¼¹ö ÄÄÇ»ÅÍ¿¡ IP ÁÖ¼Ò°¡ µÎ°³ (<code>192.168.1.1</code>°ú | 
|  | <code>172.20.30.40</code>) ÀÖ´Ù. ÄÄÇ»ÅÍ´Â ³»ºÎ (ÀÎÆ®¶ó³Ý) | 
|  | ³×Æ®¿÷°ú ¿ÜºÎ (ÀÎÅͳÝ) ³×Æ®¿÷ »çÀÌ¿¡ À§Ä¡ÇÑ´Ù. ³×Æ®¿÷ ¹Û¿¡¼ | 
|  | <code>server.example.com</code>Àº ¿ÜºÎ ÁÖ¼Ò¸¦ | 
|  | (<code>172.20.30.40</code>) ÀǹÌÇϰí, ³×Æ®¿÷ ³»ºÎ¿¡¼ °°Àº | 
|  | À̸§À» ³»ºÎ ÁÖ¼Ò·Î (<code>192.168.1.1</code>) »ç¿ëÇÑ´Ù.</p> | 
|  |  | 
|  | <p>¼¹ö´Â <code>VirtualHost</code> ¼½¼Ç ÇѰ³·Î ³»ºÎ¿Í ¿ÜºÎ | 
|  | ÀÀ´ä¿¡ °°Àº ³»¿ëÀ» ¼ºñ½ºÇÒ ¼ö ÀÖ´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | NameVirtualHost 192.168.1.1<br /> | 
|  | NameVirtualHost 172.20.30.40<br /> | 
|  | <br /> | 
|  | <VirtualHost 192.168.1.1 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/server1<br /> | 
|  | ServerName server.example.com<br /> | 
|  | ServerAlias server<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p>ÀÌÁ¦ µÎ ³×Æ®¿÷¿¡¼ µé¾î¿Â ¿äûÀ» °°Àº | 
|  | <code>VirtualHost</code>¿¡¼ ¼ºñ½ºÇÑ´Ù.</p> | 
|  |  | 
|  | <note> | 
|  | <title>ÁÖÀÇ:</title><p>³»ºÎ ³×Æ®¿÷¿¡¼´Â ¿ÏÀüÇÑ È£½ºÆ®¸í | 
|  | <code>server.example.com</code> ´ë½Å À̸§ | 
|  | <code>server</code>µµ °¡´ÉÇÏ´Ù.</p> | 
|  |  | 
|  | <p>¶ÇÇÑ À§ÀÇ ¿¹¿¡¼ IP ÁÖ¼Ò ´ë½Å <code>*</code>À» | 
|  | »ç¿ëÇÏ¿© ¼¹ö°¡ ¸ðµç ÁÖ¼Ò¿¡ µ¿ÀÏÇÏ°Ô µ¿ÀÛÇÒ ¼ö | 
|  | ÀÖ´Ù.</p> | 
|  | </note> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="port"><title>¿©·¯ Æ÷Æ®¿¡¼ ¼·Î ´Ù¸¥ »çÀÌÆ® | 
|  | ¿î¿µÇϱâ.</title> | 
|  |  | 
|  | <p>°°Àº IPÀÇ ¿©·¯ Æ÷Æ®¿¡¼ ¼·Î ´Ù¸¥ µµ¸ÞÀÎÀ» ¼ºñ½ºÇÑ´Ù°í | 
|  | °¡Á¤ÇÏÀÚ. ÀÌ´Â "NameVirtualHost" ű׿¡ Æ÷Æ®¸¦ Á¤ÀÇÇϸé | 
|  | °¡´ÉÇÏ´Ù. NameVirtualHost name:port¾øÀÌ <VirtualHost | 
|  | name:port>¸¸ ȤÀº Listen Áö½Ã¾î¸¸ »ç¿ëÇÏ¸é ¾ÈµÈ´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | Listen 80<br /> | 
|  | Listen 8080<br /> | 
|  | <br /> | 
|  | NameVirtualHost 172.20.30.40:80<br /> | 
|  | NameVirtualHost 172.20.30.40:8080<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40:80><br /> | 
|  | <indent> | 
|  | ServerName www.example.com<br /> | 
|  | DocumentRoot /www/domain-80<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40:8080><br /> | 
|  | <indent> | 
|  | ServerName www.example.com<br /> | 
|  | DocumentRoot /www/domain-8080<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40:80><br /> | 
|  | <indent> | 
|  | ServerName www.example.org<br /> | 
|  | DocumentRoot /www/otherdomain-80<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40:8080><br /> | 
|  | <indent> | 
|  | ServerName www.example.org<br /> | 
|  | DocumentRoot /www/otherdomain-8080<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="ip"><title>IP±â¹Ý °¡»óÈ£½ºÆ®</title> | 
|  |  | 
|  | <p>¼¹ö´Â °¢°¢ <code>www.example.com</code>°ú | 
|  | <code>www.example.org</code>¿¡ ÇØ´çÇÏ´Â µÎ IP ÁÖ¼Ò¸¦ | 
|  | (<code>172.20.30.40</code>°ú <code>172.20.30.50</code>) | 
|  | °¡Áø´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | Listen 80<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example1<br /> | 
|  | ServerName www.example.com<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.50><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2<br /> | 
|  | ServerName www.example.org<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p><code><VirtualHost></code> Áö½Ã¾î·Î ÁöÁ¤ÇÑ ÁÖ¼Ò¿¡ | 
|  | ÇØ´çÇÏÁö¾Ê´Â ÁÖ¼Ò·Î (¿¹¸¦ µé¾î, <code>localhost</code>) | 
|  | ¿äûÀÌ µé¾î¿À¸é ÁÖ¼¹ö°¡ ÀÖ´Â °æ¿ì ÁÖ¼¹ö°¡ ¼ºñ½ºÇÑ´Ù.</p> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="ipport"><title>Æ÷Æ®±â¹Ý°ú ip±â¹ÝÀÌ È¥ÇÕµÈ | 
|  | °¡»óÈ£½ºÆ®</title> | 
|  |  | 
|  | <p>¼¹ö´Â °¢°¢ <code>www.example.com</code>°ú | 
|  | <code>www.example.org</code>¿¡ ÇØ´çÇÏ´Â µÎ IP ÁÖ¼Ò¸¦ | 
|  | (<code>172.20.30.40</code>°ú <code>172.20.30.50</code>) | 
|  | °¡Áø´Ù. °¢ IPÀÇ 80¹ø°ú 8080¹ø Æ÷Æ®¿¡ °¡»óÈ£½ºÆ®¸¦ µ¹¸°´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | Listen 172.20.30.40:80<br /> | 
|  | Listen 172.20.30.40:8080<br /> | 
|  | Listen 172.20.30.50:80<br /> | 
|  | Listen 172.20.30.50:8080<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40:80><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example1-80<br /> | 
|  | ServerName www.example.com<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40:8080><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example1-8080<br /> | 
|  | ServerName www.example.com<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.50:80><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2-80<br /> | 
|  | ServerName www.example.org<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.50:8080><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2-8080<br /> | 
|  | ServerName www.example.org<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="mixed"><title>À̸§±â¹Ý°ú IP±â¹ÝÀÌ È¥ÇÕµÈ | 
|  | °¡»óÈ£½ºÆ®</title> | 
|  |  | 
|  | <p>ÁÖ¼ÒÁß ¸î¸îÀº À̸§±â¹Ý °¡»óÈ£½ºÆ®·Î, ´Ù¸¥ °ÍÀº IP±â¹Ý | 
|  | °¡»óÈ£½ºÆ®·Î ¼ºñ½ºÇÏ°í ½Í´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | Listen 80<br /> | 
|  | <br /> | 
|  | NameVirtualHost 172.20.30.40<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example1<br /> | 
|  | ServerName www.example.com<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2<br /> | 
|  | ServerName www.example.org<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example3<br /> | 
|  | ServerName www.example3.net<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | # IP-±â¹Ý<br /> | 
|  | <VirtualHost 172.20.30.50><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example4<br /> | 
|  | ServerName www.example4.edu<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.60><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example5<br /> | 
|  | ServerName www.example5.gov<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="default"><title><code>_default_</code> °¡»óÈ£½ºÆ® | 
|  | »ç¿ëÇϱâ</title> | 
|  |  | 
|  | <section id="defaultallports"><title>¸ðµç Æ÷Æ®¿¡ ´ëÇÑ | 
|  | <code>_default_</code> °¡»óÈ£½ºÆ®</title> | 
|  |  | 
|  | <p>¾î¶² °¡»óÈ£½ºÆ®¿¡µµ ÇØ´çÇÏÁö¾ÊÀº IP ÁÖ¼Ò¿Í Æ÷Æ®¿¡ ´ëÇÑ | 
|  | <em>¸ðµç</em> ¿äûÀ» ó¸®Çϱâ.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | <VirtualHost _default_:*><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/default<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p>default(±âº») °¡»óÈ£½ºÆ®ÀÇ Æ÷Æ®·Î ¿ÍÀϵåÄ«µå¸¦ »ç¿ëÇÏ¿© ¾î¶² ¿äûµµ | 
|  | ÁÖ¼¹ö·Î ¸ø°¡µµ·Ï ¸¸µç´Ù.</p> | 
|  |  | 
|  | <p>default °¡»óÈ£½ºÆ®´Â Àý´ë·Î À̸§±â¹Ý °¡»óÈ£½ºÆ®°¡ »ç¿ëÇÏ´Â | 
|  | ÁÖ¼Ò/Æ÷Æ®·ÎÀÇ ¿äûÀ» ¼ºñ½ºÇÏÁö ¾Ê´Â´Ù. ¾Ë ¼ö ¾ø°Å³ª | 
|  | <code>Host:</code> Çì´õ°¡ »ý·«µÈ ¿äûÀº Ç×»ó ÃÖÃÊÀÇ À̸§±â¹Ý | 
|  | °¡»óÈ£½ºÆ®(¼³Á¤ÆÄÀÏ¿¡¼ | 
|  | ÁÖ¼Ò/Æ÷Æ®°¡ óÀ½À¸·Î ³ª¿Â °¡»óÈ£½ºÆ®)°¡ ¼ºñ½ºÇÑ´Ù.</p> | 
|  |  | 
|  | <p><directive module="mod_alias">AliasMatch</directive>³ª | 
|  | <directive module="mod_rewrite">RewriteRule</directive>À» | 
|  | »ç¿ëÇÏ¿© ¾î¶² ¿äûÀ» ƯÁ¤ ÆäÀÌÁö(ȤÀº ½ºÅ©¸³Æ®)·Î | 
|  | ÀçÀÛ¼ºÇÒ(rewrite) ¼ö ÀÖ´Ù.</p> | 
|  | </section> | 
|  |  | 
|  | <section id="defaultdifferentports"><title>¿©·¯ Æ÷Æ®¿¡ ´ëÇÑ | 
|  | <code>_default_</code> °¡»óÈ£½ºÆ®</title> | 
|  |  | 
|  | <p>À§ÀÇ °æ¿ì¿Í °°Áö¸¸, ¼¹ö´Â ¿©·¯ Æ÷Æ®¸¦ ±â´Ù¸®°í 80¹ø | 
|  | Æ÷Æ®¿¡ ´ëÇØ¼ Ãß°¡·Î <code>_default_</code> °¡»óÈ£½ºÆ®¸¦ | 
|  | »ç¿ëÇÏ°í ½Í´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | <VirtualHost _default_:80><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/default80<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost _default_:*><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/default<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p>80¹ø Æ÷Æ®¿¡ ´ëÇÑ default °¡»óÈ£½ºÆ®´Â (<em>¹Ýµå½Ã</em> | 
|  | ¿ÍÀϵåÄ«µå Æ÷Æ®¸¦ °¡Áø ±âº» °¡»óÈ£½ºÆ® ÀÌÀü¿¡ ³ª¿Í¾ß ÇÑ´Ù) | 
|  | ÁöÁ¤ÇÏÁö¾ÊÀº IP ÁÖ¼Ò·Î º¸³»Áø ¸ðµç ¿äûÀ» ¼ºñ½ºÇÑ´Ù. | 
|  | ÁÖ¼¹ö´Â Àý´ë·Î ¿äûÀ» ¼ºñ½ºÇÏÁö ¸øÇÑ´Ù.</p> | 
|  | </section> | 
|  |  | 
|  | <section id="defaultoneport"><title>ÇÑ Æ÷Æ®¿¡ ´ëÇÑ | 
|  | <code>_default_</code> °¡»óÈ£½ºÆ®</title> | 
|  |  | 
|  | <p>80¹ø Æ÷Æ®¿¡ ´ëÇØ¼¸¸ default °¡»óÈ£½ºÆ®¸¦ ¸¸µé°í ½Í´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | <VirtualHost _default_:80><br /> | 
|  | DocumentRoot /www/default<br /> | 
|  | ...<br /> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p>Æ÷Æ® 80¹ø¿¡ ÁöÁ¤ÇÏÁö¾ÊÀº ÁÖ¼Ò¿¡ ´ëÇÑ ¿äûÀº ±âº» | 
|  | °¡»óÈ£½ºÆ®°¡ ¼ºñ½ºÇϰí, ´Ù¸¥ ÁöÁ¤ÇÏÁö¾ÊÀº ÁÖ¼Ò¿Í Æ÷Æ®¸¦ | 
|  | °¡Áø ¿äûÀº ÁÖ ¼¹ö°¡ ¼ºñ½ºÇÑ´Ù.</p> | 
|  | </section> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="migrate"><title>À̸§±â¹Ý °¡»óÈ£½ºÆ®¸¦ IP±â¹Ý | 
|  | °¡»óÈ£½ºÆ®·Î ¿Å±â±â</title> | 
|  |  | 
|  | <p>(<a href="#name">À̸§±â¹Ý</a>ÀÇ Ã¹¹øÂ° ¿¹¿¡¼) È£½ºÆ®¸í | 
|  | <code>www.example.org</code>¿¡ ´ëÇÑ À̸§±â¹Ý °¡»óÈ£½ºÆ®´Â | 
|  | ÀÚ½ÅÀÇ IP ÁÖ¼Ò¸¦ °¡Á®¾ß ÇÑ´Ù. À̸§±â¹Ý °¡»óÈ£½ºÆ®ÀÇ ÀÌÀü | 
|  | IP ÁÖ¼Ò¸¦ ij½ÌÇÏ´Â ³×ÀÓ¼¹ö³ª ÇÁ·Ï½Ã¿ÍÀÇ ¹®Á¦¸¦ ÇÇÇϱâÀ§ÇØ | 
|  | ¿Å±â´Â µ¿¾È µÑ ¸ðµÎ¸¦ ¼ºñ½ºÇÏ°í ½Í´Ù.</p> | 
|  |  | 
|  | <p> | 
|  | ¹æ¹ýÀº <code>VirtualHost</code> Áö½Ã¾î¿¡ »õ IP ÁÖ¼Ò¸¸À» | 
|  | (<code>172.20.30.50</code>) Ãß°¡ÇϸéµÇ¹Ç·Î ½±´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | Listen 80<br /> | 
|  | ServerName www.example.com<br /> | 
|  | DocumentRoot /www/example1<br /> | 
|  | <br /> | 
|  | NameVirtualHost 172.20.30.40<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40 172.20.30.50><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example2<br /> | 
|  | ServerName www.example.org<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/example3<br /> | 
|  | ServerName www.example.net<br /> | 
|  | ServerAlias *.example.net<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p>ÀÌÁ¦ (IP±â¹Ý °¡»óÈ£½ºÆ®¸¦ ÅëÇÑ) »õ·Î¿î ÁÖ¼Ò¿Í (À̸§±â¹Ý | 
|  | °¡»óÈ£½ºÆ®¸¦ ÅëÇÑ) ÀÌÀü ÁÖ¼Ò ¸ðµÎ °¡»óÈ£½ºÆ®¿¡ Á¢±ÙÇÒ | 
|  | ¼ö ÀÖ´Ù.</p> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | <section id="serverpath"><title><code>ServerPath</code> | 
|  | Áö½Ã¾î »ç¿ëÇϱâ</title> | 
|  |  | 
|  | <p>µÎ À̸§±â¹Ý °¡»óÈ£½ºÆ®¸¦ °¡Áø ¼¹ö°¡ ÀÖ´Ù. ¿Ã¹Ù¸¥ | 
|  | °¡»óÈ£½ºÆ®¸¦ ¼±ÅÃÇϱâÀ§ÇØ Å¬¶óÀÌ¾ðÆ®´Â ¿Ã¹Ù¸¥ | 
|  | <code>Host:</code> Çì´õ¸¦ º¸³»¾ß ÇÑ´Ù. ¿À·¡µÈ HTTP/1.0 | 
|  | Ŭ¶óÀÌ¾ðÆ®°¡ ÀÌ Çì´õ¸¦ º¸³»Áö ¸øÇÏ¸é ¾ÆÆÄÄ¡´Â Ŭ¶óÀÌ¾ðÆ®°¡ | 
|  | ¾î¶² °¡»óÈ£½ºÆ®¸¦ º¸·Á°íÇÏ´ÂÁö ¾Ë ¼ö ¾ø´Ù (±×·¡¼ ÃÖÃÊÀÇ | 
|  | °¡»óÈ£½ºÆ®°¡ ¿äûÀ» ¼ºñ½ºÇÑ´Ù). ¿À·¡µÈ ºê¶ó¿ìÀú¿Í °¡´ÉÇÑ È£È¯À» | 
|  | À¯ÁöÇϱâÀ§ÇØ ÃÖÃÊÀÇ °¡»óÈ£½ºÆ®¸¦ ¸¸µé°í, ¿©±â¿¡ À̸§±â¹Ý | 
|  | °¡»óÈ£½ºÆ®ÀÇ URL Á¢µÎ»ç¸¦ Æ÷ÇÔÇÏ´Â ¸µÅ© ¸ñ·Ï ÆäÀÌÁö¸¦ | 
|  | µÐ´Ù.</p> | 
|  |  | 
|  | <example> | 
|  | <title>¼¹ö ¼³Á¤</title> | 
|  |  | 
|  | NameVirtualHost 172.20.30.40<br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | # primary vhost<br /> | 
|  | DocumentRoot /www/subdomain<br /> | 
|  | RewriteEngine On<br /> | 
|  | RewriteRule ^/.* /www/subdomain/index.html<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | DocumentRoot /www/subdomain/sub1<br /> | 
|  | <indent> | 
|  | ServerName www.sub1.domain.tld<br /> | 
|  | ServerPath /sub1/<br /> | 
|  | RewriteEngine On<br /> | 
|  | RewriteRule ^(/sub1/.*) /www/subdomain$1<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost><br /> | 
|  | <br /> | 
|  | <VirtualHost 172.20.30.40><br /> | 
|  | <indent> | 
|  | DocumentRoot /www/subdomain/sub2<br /> | 
|  | ServerName www.sub2.domain.tld<br /> | 
|  | ServerPath /sub2/<br /> | 
|  | RewriteEngine On<br /> | 
|  | RewriteRule ^(/sub2/.*) /www/subdomain$1<br /> | 
|  | # ...<br /> | 
|  | </indent> | 
|  | </VirtualHost> | 
|  | </example> | 
|  |  | 
|  | <p><directive module="core">ServerPath</directive> Áö½Ã¾î¶§¹®¿¡ | 
|  | URL <code>http://www.sub1.domain.tld/sub1/</code>¿¡ ´ëÇÑ | 
|  | ¿äûÀº <em>Ç×»ó</em> subl-°¡»óÈ£½ºÆ®°¡ ¼ºñ½ºÇÑ´Ù.<br /> | 
|  | Ŭ¶óÀÌ¾ðÆ®°¡ ¿Ã¹Ù¸¥ <code>Host:</code> Çì´õ¸¦ º¸³½´Ù¸é, | 
|  | URL <code>http://www.sub1.domain.tld/</code>¿¡ ´ëÇÑ ¿äûÀº | 
|  | subl-°¡»óÈ£½ºÆ®¿¡¼¸¸ ¼ºñ½ºÇÑ´Ù. ¸¸¾à <code>Host:</code> Çì´õ¸¦ | 
|  | º¸³»Áö¾ÊÀ¸¸é Ŭ¶óÀÌ¾ðÆ®´Â ÃÖÃÊÀÇ È£½ºÆ®¿¡ ÀÖ´Â Á¤º¸ÆäÀÌÁö¸¦ | 
|  | º¸°ÔµÈ´Ù.</p> | 
|  |  | 
|  | <p>¿©±â¿¡ ¹®Á¦°¡ ÀÖÀ½À» ÁÖÀÇÇ϶ó: Ŭ¶óÀÌ¾ðÆ®°¡ | 
|  | <code>Host:</code> Çì´õ¸¦ º¸³»Áö¾ÊÀ¸¸é | 
|  | <code>http://www.sub2.domain.tld/sub1/</code>¿¡ ´ëÇÑ ¿äûµµ | 
|  | subl-°¡»óÈ£½ºÆ®°¡ ¼ºñ½ºÇÑ´Ù.</p> | 
|  |  | 
|  | <p><directive module="mod_rewrite">RewriteRule</directive> | 
|  | Áö½Ã¾î¸¦ »ç¿ëÇÏ¿© ¿Ã¹Ù¸¥ <code>Host:</code> Çì´õ¸¦ º¸³»´Â | 
|  | Ŭ¶óÀÌ¾ðÆ®´Â (<em>¿¹¸¦ µé¾î</em>, URL ÀüÄ¡»ç°¡ Àְųª ¾ø´Â) | 
|  | µÎ URLÀ» ¸ðµÎ »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p> | 
|  |  | 
|  | </section> | 
|  |  | 
|  | </manualpage> |