HEX
Server: Apache
System: Linux wp-jo-wordpress-79f99b7d9d-ngh2p 6.12.67-0-virt #1-Alpine SMP PREEMPT_DYNAMIC 2026-01-27 02:08:12 x86_64
User: (1001)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: /opt/bitnami/apache/manual/vhosts/examples.html.ko.euc-kr
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html lang="ko"><head><META http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<meta content="width=device-width, initial-scale=1" name="viewport">
<!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>����ȣ��Ʈ �� - Apache HTTP Server Version 2.4</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet">
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size">
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css"><link rel="stylesheet" type="text/css" href="../style/css/prettify.css">
<script src="../style/scripts/prettify.min.js">
</script>

<link href="../images/favicon.png" rel="shortcut icon"></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/quickreference.html">���þ��</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">���Ʈ��</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="../images/feather.png"></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif"></a></div>
<div id="path">
<a href="https://www.apache.org/">Apache</a> &gt; <a href="https://httpd.apache.org/">HTTP Server</a> &gt; <a href="https://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.4</a> &gt; <a href="./">����ȣ��Ʈ</a></div><div id="page-content"><div id="preamble"><h1>����ȣ��Ʈ ��</h1>
<button aria-label="Toggle language list" class="lang-toggle"><svg xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke="currentColor" fill="none" viewBox="0 0 24 24" height="16" width="16"><circle r="10" cy="12" cx="12"/><line y2="12" x2="22" y1="12" x1="2"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></button>
<div class="toplang">
<p><span>������ ���: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Fran&ccedil;ais">&nbsp;fr&nbsp;</a> |
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="../ko/vhosts/examples.html" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="../tr/vhosts/examples.html" hreflang="tr" rel="alternate" title="T&uuml;rk&ccedil;e">&nbsp;tr&nbsp;</a></p>
</div>
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
            �ֱٿ� ����� ���� ���� ������ ����ϼ���.</div>


    <p>�� ������ ��� ���ǵǴ� ����ȣ��Ʈ
    ������ �� �Ϸ��� ��������. ��Ȳ�� <a href="name-based.html">�̸����</a>�̳� <a href="ip-based.html">IP���</a> ����ȣ��Ʈ�� ���� �� ��������
    ���� �����Ʈ�� �����Ϸ��� ���̴�. �� ��Ͻ� ���� �ڿ���
    ���� ������ ����Ͽ� ���Ʈ�� ��ϴ� ��츦 �ٷ� ������
    �� ���� ��̴�.</p>

</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif"> <a href="#purename">IP �ּ� �Ѱ��� ���� �̸����
    �����Ʈ ��ϱ�.</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#twoips">���� IP �ּҿ��� �̸����
    ȣ��Ʈ.</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#intraextra">(���ο� �ܺ� �ּҿ� ����)
    �ٸ� IP �ּҷ� ���� ���� �����ϱ�.</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#port">���� �Ʈ���� ���� �ٸ� ���Ʈ
    ��ϱ�.</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#ip">IP��� ����ȣ��Ʈ</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#ipport">�Ʈ��ݰ� ip���� ȥ�յ�
    ����ȣ��Ʈ</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#mixed">�̸���ݰ� IP���� ȥ�յ�
    ����ȣ��Ʈ</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#default"><code>_default_</code> ����ȣ��Ʈ
    ����ϱ�</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#migrate">�̸���� ����ȣ��Ʈ�� IP���
    ����ȣ��Ʈ�� �ű��</a></li>
<li><img alt="" src="../images/down.gif"> <a href="#serverpath"><code>ServerPath</code>
	���þ� ����ϱ�</a></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="purename">IP �ּ� �Ѱ��� ���� �̸����
    �����Ʈ ��ϱ�. <a title="Permanent link" href="#purename" class="permalink">&para;</a></h2>

    <p>������ IP �ּҰ� �Ѱ� �ְ�, DNS���� ���� �ּ�(CNAMES)��
    �� ��ǻ�͸� ����Ų��. �� ��ǻ�Ϳ��� <code>www.example.com</code>��
    <code>www.example.org</code>�� �������� �����ϰ� �ʹ�.</p>

    <div class="note"><h3>Note</h3><p>����ġ ������ ����ȣ��Ʈ ������
          �Ѵٰ� �� ȣ��Ʈ�� ���� DNS �׸�� �ڵ��̷� �������
          �ʴ´�. <em>�ݵ��</em> DNS�� IP �ּҸ� ����Ű��
          �̸��� �־�� �Ѵ�. �ȱ׷��� �ƹ��� �����Ʈ�� ��
          �� ����. �˻��غ��� ���� <code>hosts</code> ��Ͽ� �׸�
          �߰��� �� �����, �̴� hosts �׸� ���� ��ǻ�Ϳ���
          �ݿ��ȴ�.</p>
    </div>

    <div class="example"><h3>���� ����</h3><p><code>
    

    # ����ġ�� �Ʈ 80�� ��ٸ���<br>
    Listen 80<br>
    <br>
    # ��� IP �ּҿ��� ����ȣ��Ʈ ��û�� ��ٸ���<br>
    NameVirtualHost *:80<br>
    <br>
    &lt;VirtualHost *:80&gt;<br>
    <span class="indent">
      DocumentRoot /www/example1<br>
      ServerName www.example.com<br>
      <br>
      # �ٸ� ���þ�鵵 �ִ�<br>
      <br>
    </span>
    &lt;/VirtualHost&gt;<br>
    <br>
    &lt;VirtualHost *:80&gt;<br>
    <span class="indent">
      DocumentRoot /www/example2<br>
      ServerName www.example.org<br>
      <br>
      # �ٸ� ���þ�鵵 �ִ�<br>
      <br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>��ǥ�� ��� �ּҸ� ����Ű�Ƿ�, �ּ����� � ��û��
    ������� �ʴ´�. <code>www.example.com</code>��
    ������Ͽ� ó������ �����Ƿ� ���� �� �켱������ ������,
    <cite>�⺻</cite>Ȥ�� <cite>�ʱ�</cite> ������ �ȴ�.
    � <code>ServerName</code> ���þ�� �ش����ʴ� ��û��
    ù��° <code>VirtualHost</code>�� �����Ѵ�.</p>

    <div class="note">
            <h3>���</h3>

            <p>���Ѵٸ� <code>*</code> ��� �ý���� ��� IP
            �ּҸ� ����� �� �ִ�. �� ���
            <code>VirtualHost</code>�� �ƱԸ�Ʈ��
            <code>NameVirtualHost</code>�� �ƱԸ�Ʈ�� ��ġ�ؾ�
            <em>�Ѵ�</em>:</p>

            <div class="example"><p><code>
            NameVirtualHost 172.20.30.40<br>
						<br>
            &lt;VirtualHost 172.20.30.40&gt;<br>
 		        # ���� ...
            </code></p></div>

           <p>�׷��� ISP���� �������� IP �ּҸ� �������� ��
           IP �ּҸ� �𸣴� ��쿡�� <code>*</code>�� ����ϴ�
           ��� �����ϴ�. <code>*</code>�� ��� IP �ּҿ�
           �ش��ϹǷ�, IP �ּҰ� ����Ǿ ������ ������
           �ʿ䰡 ����.</p>
    </div>

    <p>��� ��κ�� �̸���� ����ȣ��Ʈ ������ ���� ����.
    ���ܴ� �ٸ� IP �ּҳ� �Ʈ�� �ٸ� ���� �����Ϸ���
    ���̴�.</p>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="twoips">���� IP �ּҿ��� �̸����
    ȣ��Ʈ. <a title="Permanent link" href="#twoips" class="permalink">&para;</a></h2>

  	<div class="note">
		  <h3>���</h3><p>���⼭ ������ ���� IP �ּҰ�
          ��� ���밡���ϴ�.</p>
    </div>

    <p>������ IP �ּҰ� �ΰ��ִ�. �ϳ�����
    (<code>172.20.30.40</code>) "��" ����
    <code>server.domain.com</code>�� �����ϰ�, �ٸ� �ϳ�����
    (<code>172.20.30.50</code>) ���� ����ȣ��Ʈ�� ������
    ��̴�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    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>
    &lt;VirtualHost 172.20.30.50&gt;<br>
    <span class="indent">
        DocumentRoot /www/example1<br>
        ServerName www.example.com<br>
   			<br>
        # �ٸ� ���þ�鵵 �ִ� ...<br>
				<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.50&gt;<br>
    <span class="indent">
        DocumentRoot /www/example2<br>
        ServerName www.example.org<br>
				<br>
        # �ٸ� ���þ�鵵 �ִ� ...<br>
				<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p><code>172.20.30.50</code>�� �ƴ� �ּҿ� ���� ��û��
    �ּ����� �����Ѵ�. ȣ��Ʈ�� ����, �� <code>Host:</code>
    ������ <code>172.20.30.50</code>�� ��û�ϸ�
    <code>www.example.com</code>�� �����Ѵ�.</p>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="intraextra">(���ο� �ܺ� �ּҿ� ����)
    �ٸ� IP �ּҷ� ���� ���� �����ϱ�. <a title="Permanent link" href="#intraextra" class="permalink">&para;</a></h2>

    <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>

    <div class="example"><h3>���� ����</h3><p><code>
    

    NameVirtualHost 192.168.1.1<br>
    NameVirtualHost 172.20.30.40<br>
		<br>
    &lt;VirtualHost 192.168.1.1 172.20.30.40&gt;<br>
    <span class="indent">
        DocumentRoot /www/server1<br>
        ServerName server.example.com<br>
        ServerAlias server<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>��� �� ��Ʈ������ ���� ��û�� ����
    <code>VirtualHost</code>���� �����Ѵ�.</p>

    <div class="note">
          <h3>���:</h3><p>���� ��Ʈ�������� ����� ȣ��Ʈ��
          <code>server.example.com</code> ��� �̸�
          <code>server</code>�� �����ϴ�.</p>

          <p>���� ���� ������ IP �ּ� ��� <code>*</code>��
          ����Ͽ� ������ ��� �ּҿ� �����ϰ� ������ ��
          �ִ�.</p>
    </div>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="port">���� �Ʈ���� ���� �ٸ� ���Ʈ
    ��ϱ�. <a title="Permanent link" href="#port" class="permalink">&para;</a></h2>

    <p>���� IP�� ���� �Ʈ���� ���� �ٸ� ������ �����Ѵٰ�
    �������. �̴� "NameVirtualHost" �±׿� �Ʈ�� �����ϸ�
    �����ϴ�. NameVirtualHost name:port���� &lt;VirtualHost
    name:port&gt;�� Ȥ�� Listen ���þ ����ϸ� �ȵȴ�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    Listen 80<br>
    Listen 8080<br>
		<br>
    NameVirtualHost 172.20.30.40:80<br>
    NameVirtualHost 172.20.30.40:8080<br>
		<br>
    &lt;VirtualHost 172.20.30.40:80&gt;<br>
    <span class="indent">
        ServerName www.example.com<br>
        DocumentRoot /www/domain-80<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40:8080&gt;<br>
    <span class="indent">
        ServerName www.example.com<br>
        DocumentRoot /www/domain-8080<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40:80&gt;<br>
    <span class="indent">
        ServerName www.example.org<br>
        DocumentRoot /www/otherdomain-80<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40:8080&gt;<br>
    <span class="indent">
        ServerName www.example.org<br>
        DocumentRoot /www/otherdomain-8080<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="ip">IP��� ����ȣ��Ʈ <a title="Permanent link" href="#ip" class="permalink">&para;</a></h2>

    <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>

    <div class="example"><h3>���� ����</h3><p><code>
    

    Listen 80<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="indent">
        DocumentRoot /www/example1<br>
        ServerName www.example.com<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.50&gt;<br>
    <span class="indent">
        DocumentRoot /www/example2<br>
        ServerName www.example.org<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p><code>&lt;VirtualHost&gt;</code> ���þ�� ������ �ּҿ�
    �ش�����ʴ� �ּҷ� (���� ���, <code>localhost</code>)
    ��û�� ����� �ּ����� �ִ� ��� �ּ����� �����Ѵ�.</p>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="ipport">�Ʈ��ݰ� ip���� ȥ�յ�
    ����ȣ��Ʈ <a title="Permanent link" href="#ipport" class="permalink">&para;</a></h2>

    <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>

    <div class="example"><h3>���� ����</h3><p><code>
    

    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>
    &lt;VirtualHost 172.20.30.40:80&gt;<br>
    <span class="indent">
        DocumentRoot /www/example1-80<br>
        ServerName www.example.com<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40:8080&gt;<br>
    <span class="indent">
        DocumentRoot /www/example1-8080<br>
        ServerName www.example.com<br>
		</span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.50:80&gt;<br>
    <span class="indent">
        DocumentRoot /www/example2-80<br>
        ServerName www.example.org<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.50:8080&gt;<br>
    <span class="indent">
        DocumentRoot /www/example2-8080<br>
        ServerName www.example.org<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="mixed">�̸���ݰ� IP���� ȥ�յ�
    ����ȣ��Ʈ <a title="Permanent link" href="#mixed" class="permalink">&para;</a></h2>

    <p>�ּ�� ��� �̸���� ����ȣ��Ʈ��, �ٸ� ��� IP���
    ����ȣ��Ʈ�� �����ϰ� �ʹ�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    Listen 80<br>
		<br>
    NameVirtualHost 172.20.30.40<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="indent">
        DocumentRoot /www/example1<br>
        ServerName www.example.com<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="indent">
        DocumentRoot /www/example2<br>
        ServerName www.example.org<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="indent">
        DocumentRoot /www/example3<br>
        ServerName www.example3.net<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    # IP-���<br>
    &lt;VirtualHost 172.20.30.50&gt;<br>
    <span class="indent">
        DocumentRoot /www/example4<br>
        ServerName www.example4.edu<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.60&gt;<br>
    <span class="indent">
        DocumentRoot /www/example5<br>
        ServerName www.example5.gov<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="default"><code>_default_</code> ����ȣ��Ʈ
    ����ϱ� <a title="Permanent link" href="#default" class="permalink">&para;</a></h2>

  	<h3 id="defaultallports">��� �Ʈ�� ����
    <code>_default_</code> ����ȣ��Ʈ</h3>

    <p>� ����ȣ��Ʈ���� �ش������� IP �ּҿ� �Ʈ�� ����
    <em>���</em> ��û�� ó���ϱ�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    &lt;VirtualHost _default_:*&gt;<br>
    <span class="indent">
        DocumentRoot /www/default<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>default(�⺻) ����ȣ��Ʈ�� �Ʈ�� ��ϵ�ī�带 ����Ͽ� � ��û��
    �ּ����� �������� �����.</p>

    <p>default ����ȣ��Ʈ�� ����� �̸���� ����ȣ��Ʈ�� ����ϴ�
    �ּ�/�Ʈ��� ��û�� ������� �ʴ´�. �� �� ���ų�
    <code>Host:</code> ���� ������ ��û�� �׻� ����� �̸����
    ����ȣ��Ʈ(������Ͽ���
    �ּ�/�Ʈ�� ó������ ���� ����ȣ��Ʈ)�� �����Ѵ�.</p>

    <p><code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code>��
    <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>��
    ����Ͽ� � ��û�� Ư�� ����(Ȥ�� ��ũ��Ʈ)��
    ��ۼ���(rewrite) �� �ִ�.</p>
    

    <h3 id="defaultdifferentports">���� �Ʈ�� ����
    <code>_default_</code> ����ȣ��Ʈ</h3>

    <p>���� ���� ������, ������ ���� �Ʈ�� ��ٸ��� 80��
    �Ʈ�� ���ؼ� �߰��� <code>_default_</code> ����ȣ��Ʈ��
    ����ϰ� �ʹ�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    &lt;VirtualHost _default_:80&gt;<br>
    <span class="indent">
        DocumentRoot /www/default80<br>
        # ...<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost _default_:*&gt;<br>
    <span class="indent">
        DocumentRoot /www/default<br>
        # ...<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>80�� �Ʈ�� ���� default ����ȣ��Ʈ�� (<em>�ݵ��</em>
    ��ϵ�ī�� �Ʈ�� ���� �⺻ ����ȣ��Ʈ ����� ���;� �Ѵ�)
    ���������� IP �ּҷ� ������ ��� ��û�� �����Ѵ�.
    �ּ����� ����� ��û�� ������� ���Ѵ�.</p>
    

    <h3 id="defaultoneport">�� �Ʈ�� ����
    <code>_default_</code> ����ȣ��Ʈ</h3>

    <p>80�� �Ʈ�� ���ؼ��� default ����ȣ��Ʈ�� ����� �ʹ�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    &lt;VirtualHost _default_:80&gt;<br>
    DocumentRoot /www/default<br>
    ...<br>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>�Ʈ 80���� ���������� �ּҿ� ���� ��û�� �⺻
    ����ȣ��Ʈ�� �����ϰ�, �ٸ� ���������� �ּҿ� �Ʈ��
    ���� ��û�� �� ������ �����Ѵ�.</p>
    

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="migrate">�̸���� ����ȣ��Ʈ�� IP���
    ����ȣ��Ʈ�� �ű�� <a title="Permanent link" href="#migrate" class="permalink">&para;</a></h2>

    <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>

    <div class="example"><h3>���� ����</h3><p><code>
    

    Listen 80<br>
    ServerName www.example.com<br>
    DocumentRoot /www/example1<br>
		<br>
    NameVirtualHost 172.20.30.40<br>
		<br>
    &lt;VirtualHost 172.20.30.40 172.20.30.50&gt;<br>
    <span class="indent">
        DocumentRoot /www/example2<br>
        ServerName www.example.org<br>
        # ...<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="indent">
        DocumentRoot /www/example3<br>
        ServerName www.example.net<br>
        ServerAlias *.example.net<br>
        # ...<br>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>��� (IP��� ����ȣ��Ʈ�� ����) ���ο� �ּҿ� (�̸����
    ����ȣ��Ʈ�� ����) ��� �ּ� ��� ����ȣ��Ʈ�� ������
    �� �ִ�.</p>

	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"></a></div>
<div class="section">
<h2 id="serverpath"><code>ServerPath</code>
	���þ� ����ϱ� <a title="Permanent link" href="#serverpath" class="permalink">&para;</a></h2>

    <p>�� �̸���� ����ȣ��Ʈ�� ���� ������ �ִ�. �ùٸ�
    ����ȣ��Ʈ�� �����ϱ��� Ŭ��̾�Ʈ�� �ùٸ�
    <code>Host:</code> ���� ������ �Ѵ�. ������ HTTP/1.0
    Ŭ��̾�Ʈ�� �� ���� ������ ���ϸ� ����ġ�� Ŭ��̾�Ʈ��
    � ����ȣ��Ʈ�� �������ϴ�� �� �� ���� (�׷��� �����
    ����ȣ��Ʈ�� ��û�� �����Ѵ�). ������ ������ ������ ȣȯ��
    �����ϱ��� ����� ����ȣ��Ʈ�� �����, ���⿡ �̸����
    ����ȣ��Ʈ�� URL ���λ縦 ����ϴ� ��ũ ��� ������
    �д�.</p>

    <div class="example"><h3>���� ����</h3><p><code>
    

    NameVirtualHost 172.20.30.40<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="indent">
        # primary vhost<br>
        DocumentRoot /www/subdomain<br>
        RewriteEngine On<br>
        RewriteRule ^/.* /www/subdomain/index.html<br>
        # ...<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    DocumentRoot /www/subdomain/sub1<br>
    <span class="indent">
        ServerName www.sub1.domain.tld<br>
        ServerPath /sub1/<br>
        RewriteEngine On<br>
        RewriteRule ^(/sub1/.*) /www/subdomain$1<br>
        # ...<br>
    </span>
    &lt;/VirtualHost&gt;<br>
		<br>
    &lt;VirtualHost 172.20.30.40&gt;<br>
    <span class="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>
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> ���þ����
    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><code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>
    ���þ ����Ͽ� �ùٸ� <code>Host:</code> ���� ������
    Ŭ��̾�Ʈ�� (<em>���� ���</em>, URL ��ġ�簡 �ְų� ����)
    �� URL�� ��� ����� �� �ִ�.</p>

	</div></div>
<div class="bottomlang">
<p><span>������ ���: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Fran&ccedil;ais">&nbsp;fr&nbsp;</a> |
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="../ko/vhosts/examples.html" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="../tr/vhosts/examples.html" hreflang="tr" rel="alternate" title="T&uuml;rk&ccedil;e">&nbsp;tr&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 2026 The Apache Software Foundation.<br>Licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/quickreference.html">���þ��</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">���Ʈ��</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p></div><script><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
var langToggle = document.querySelector('.lang-toggle');
var topLang = document.querySelector('.toplang');
if (langToggle && topLang) {
    langToggle.addEventListener('click', function() { topLang.classList.toggle('open'); });
}
var qv = document.getElementById('quickview');
if (qv) {
    document.body.appendChild(qv);
    var qvBtn = document.createElement('button');
    qvBtn.className = 'qv-toggle';
    qvBtn.setAttribute('aria-label', 'Toggle page navigation');
    qvBtn.innerHTML = '&#9776;';
    document.body.appendChild(qvBtn);
    qvBtn.addEventListener('click', function() {
        var isOpen = qv.classList.toggle('open');
        if (isOpen) {
            qv.style.top = window.scrollY + 10 + 'px';
        }
    });
    window.addEventListener('scroll', function() { qv.classList.remove('open'); });
}
//--><!]]></script>
</body></html>