examples.html.ko.euc-kr revision 93afd8a57254a2014ae4890c2911da393ec41ef1
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>����ȣ��Ʈ �� - Apache HTTP Server</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 href="/images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p>
<p class="apache">Apache HTTP Server Version 2.1</p>
<img alt="" src="/images/feather.gif" /></div>
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs-project/">Documentation</a> &gt; <a href="../">Version 2.1</a> &gt; <a href="./">����ȣ��Ʈ</a></div><div id="page-content"><div id="preamble"><h1>����ȣ��Ʈ ��</h1>
<div class="toplang">
<p><span>������ ���: </span><a href="/en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="/ko/vhosts/examples.html" title="Korean">&nbsp;ko&nbsp;</a></p>
</div>
<div class="outofdate">This translation may be out of date. Check the
English version for recent changes.</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><a name="purename" id="purename">IP �ּ� �Ѱ��� ���� �̸����
������Ʈ ��ϱ�.</a></h2>
<p>������ IP �ּҰ� �Ѱ� �ְ�, DNS���� ���� �ּ�(CNAMES)��
�� ��ǻ�͸� ����Ų��. �� ��ǻ�Ϳ��� <code>www.example1.com</code>��
<code>www.example2.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 *<br />
<br />
&lt;VirtualHost *&gt;<br />
<span class="indent">
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
<br />
# �ٸ� ���þ�鵵 �ִ�<br />
<br />
</span>
&lt;/VirtualHost&gt;<br />
<br />
&lt;VirtualHost *&gt;<br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
<br />
# �ٸ� ���þ�鵵 �ִ�<br />
<br />
</span>
&lt;/VirtualHost&gt;
</code></p></div>
<p>��ǥ�� ��� �ּҸ� ����Ű�Ƿ�, �ּ����� � ��û��
�������� �ʴ´�. <code>www.example1.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><a name="twoips" id="twoips">���� IP �ּҿ��� �̸����
ȣ��Ʈ.</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.example1.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.example2.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.example1.com</code>�� �����Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
<div class="section">
<h2><a name="intraextra" id="intraextra">(���ο� �ܺ� �ּҿ� ����)
�ٸ� IP �ּҷ� ���� ������ �����ϱ�.</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><a name="port" id="port">���� ��Ʈ���� ���� �ٸ� ����Ʈ
��ϱ�.</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.example1.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.example1.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.example2.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.example2.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><a name="ip" id="ip">IP��� ����ȣ��Ʈ</a></h2>
<p>������ ���� <code>www.example1.com</code>��
<code>www.example2.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.example1.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.example2.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><a name="ipport" id="ipport">��Ʈ��ݰ� ip����� ȥ�յ�
����ȣ��Ʈ</a></h2>
<p>������ ���� <code>www.example1.com</code>��
<code>www.example2.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.example1.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.example1.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.example1.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.example2.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><a name="mixed" id="mixed">�̸���ݰ� IP����� ȥ�յ�
����ȣ��Ʈ</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.example1.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.example2.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><a name="default" id="default"><code>_default_</code> ����ȣ��Ʈ
����ϱ�</a></h2>
<h3><a name="defaultallports" id="defaultallports">��� ��Ʈ�� ����
<code>_default_</code> ����ȣ��Ʈ</a></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><a name="defaultdifferentports" id="defaultdifferentports">���� ��Ʈ�� ����
<code>_default_</code> ����ȣ��Ʈ</a></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><a name="defaultoneport" id="defaultoneport">�� ��Ʈ�� ����
<code>_default_</code> ����ȣ��Ʈ</a></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><a name="migrate" id="migrate">�̸���� ����ȣ��Ʈ�� IP���
����ȣ��Ʈ�� �ű��</a></h2>
<p>(<a href="#name">�̸����</a>�� ù��° ������) ȣ��Ʈ��
<code>www.example2.org</code>�� ���� �̸���� ����ȣ��Ʈ��
�ڽ��� IP �ּҸ� ������ �Ѵ�. �̸���� ����ȣ��Ʈ�� ����
IP �ּҸ� ij���ϴ� ���Ӽ����� ���Ͻÿ��� ������ ���ϱ�����
�ű�� ���� �� ��θ� �����ϰ� �ʹ�.<br /> �����
<code>VirtualHost</code> ���þ �� IP �ּҸ���
(<code>172.20.30.50</code>) �߰��ϸ�ǹǷ� ����.</p>
<div class="example"><h3>���� ����</h3><p><code>
Listen 80<br />
ServerName www.example1.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.example2.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.example3.net<br />
ServerAlias *.example3.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><a name="serverpath" id="serverpath"><code>ServerPath</code>
���þ� ����ϱ�</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> �����
������������ Ŭ���̾�Ʈ�� ������ ȣ��Ʈ�� �ִ� ������������
���Եȴ�.<br /> ���⿡ ������ ������ �����϶�: Ŭ���̾�Ʈ��
<code>Host:</code> ����� ������������
<code>http://www.sub2.domain.tld/sub1/</code>�� ���� ��û��
subl-����ȣ��Ʈ�� �����Ѵ�.<br />
<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="/ko/vhosts/examples.html" title="Korean">&nbsp;ko&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p></div>
</body></html>