<?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: 420990:1673945 (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="name-based.xml.meta">
<parentdocument href="./">����ȣ��Ʈ</parentdocument>
<title>�̸���� ����ȣ��Ʈ ����</title>
<summary>
<p>�� ������ �̸���� ����ȣ��Ʈ�� ����ϴ� ���� �����
�����Ѵ�.</p>
</summary>
<seealso><a href="ip-based.html">IP��� ����ȣ��Ʈ ����</a></seealso>
<seealso><a href="details.html">����ȣ��Ʈ ã�⿡ ���� �ڼ��� ����</a></seealso>
<seealso><a href="mass.html">�뷮�� ����ȣ��Ʈ�� �������� �����ϱ�</a></seealso>
<seealso><a href="examples.html">�Ϲ����� ����ȣ��Ʈ ��</a></seealso>
<seealso><a href="examples.html#serverpath">ServerPath ���� ��</a></seealso>
<section id="namevip"><title>�̸���� �� IP��� ����ȣ��Ʈ</title>
<p>IP��� ����ȣ��Ʈ�� ������ IP �ּҸ� ������ ������
����ȣ��Ʈ�� �����Ѵ�. �׷��� �� ȣ��Ʈ�� ���� �ٸ� IP �ּҸ�
������ �Ѵ�. �̸���� ����ȣ��Ʈ�� ��� ������ Ŭ���̾�Ʈ��
HTTP ����� ȣ��Ʈ���� �˷��ֱ� �ٶ���. �̷� ������� ��
IP �ּҷ� ���� �ٸ� ȣ��Ʈ�� ������ �� �ִ�.</p>
<p>�̸���� ����ȣ��Ʈ�� DNS ������ �� ȣ��Ʈ���� �ùٸ�
IP �ּҷ� �����ϵ��� ����ȣ��Ʈ�� �����ϰ�, �ٸ� ȣ��Ʈ���� ������
�� �ֵ��� ����ġ �������� �����ϱ⸸ �ϸ�ǹǷ� �� �����ϴ�. �̸����
����ȣ��Ʈ�� �� ���� IP �ּҰ� �ʿ���. �׷��Ƿ� Ư����
IP��� ����ȣ��Ʈ�� ������ ������ ��ٸ� �̸���� ����ȣ��Ʈ��
����ؾ� �Ѵ�. IP��� ����ȣ��Ʈ�� ����ؾ��� �����δ�:</p>
<ul>
<li>�̸���� ����ȣ��Ʈ�� ���������ʴ� ������
Ŭ���̾�Ʈ���� �ִ�. �̸���� ����ȣ��Ʈ�� ����Ϸ���
Ŭ���̾�Ʈ�� HTTP Host ����� ������ �Ѵ�. �̴�
HTTP/1.1������ �ʼ��̰�, �ֱ� ��� HTTP/1.0 ������鵵
Ȯ������ �����Ѵ�. ���� �̸���� ����ȣ��Ʈ�� ����ϸ鼭
������ Ŭ���̾�Ʈ�� �����ؾ� �Ѵٸ� �� ���� ���� �ִ�
����� �������.</li>
<li>SSL ���������� ���ݻ� SSL ���ȼ������� �̸����
����ȣ��Ʈ�� ����� �� ���.</li>
<li>� �ü���� ��Ʈ�� ��ġ�� �ٸ� IP �ּҸ� �������
������ ȣ��Ʈ�� �������� ���ϴ� ��Ʈ�� ��뷮(bandwidth)
������ ����Ѵ�.</li>
</ul>
</section>
<section id="using"><title>�̸���� ����ȣ��Ʈ ����ϱ�</title>
<related>
<modulelist>
<module>core</module>
</modulelist>
<directivelist>
<directive module="core">DocumentRoot</directive>
<directive module="core">NameVirtualHost</directive>
<directive module="core">ServerAlias</directive>
<directive module="core">ServerName</directive>
<directive module="core">ServerPath</directive>
<directive module="core" type="section">VirtualHost</directive>
</directivelist>
</related>
<p>�̸���� ����ȣ��Ʈ�� ����Ϸ��� ������ ������ ����
IP �ּҸ� (�Ƹ� ��Ʈ��) ���ؾ� �Ѵ�. �̴� <directive
module="core">NameVirtualHost</directive> ���þ�� �����ϴ�.
�Ϲ������� ������ ��� IP �ּҸ� ����Ѵٸ�
<directive module="core">NameVirtualHost</directive>��
�ƱԸ�Ʈ�� <code>*</code>�� ����Ѵ�. ���� ��Ʈ�� �����
(���� ���, SSL�� �����) ��ȹ�̶�� <code>*:80</code>��
���� �ƱԸ�Ʈ�� ��Ʈ�� �߰��ؾ� �Ѵ�. <directive
module="core">NameVirtualHost</directive> ���þ IP �ּҸ�
����־�ٰ� ������ �ڵ����� �� IP �ּҸ� ��ٸ��� ������
�����϶�. �ڼ��� ������ <a href="/bind.html">����ġ��
����� �ּҿ� ��Ʈ �����ϱ�</a>�� ����϶�. ��, ���⼭
������ IP �ּҴ� ������ ��Ʈ�� �������̽��̾�� �Ѵ�.</p>
<p>���� �ܰ�� �����Ϸ��� ȣ��Ʈ���� <directive
type="section" module="core">VirtualHost</directive> �����
����� ���̴�. <directive type="section"
module="core">VirtualHost&gt;</directive> ���þ��� �ƱԸ�Ʈ��
<directive module="core">NameVirtualHost</directive> ���þ���
�ƱԸ�Ʈ(���� ���, IP �ּҳ� ��� �ּҸ� ���ϴ� <code>*</code>)��
���ƾ� �Ѵ�. <directive type="section"
module="core">VirtualHost&gt;</directive> ��� �ȿ���
�ּ��� ������ ȣ��Ʈ�� �����ϴ� <directive
module="core">ServerName</directive> ���þ�� ȣ��Ʈ��
������ ���Ͻý��� ��� �ִ����� �����ϴ� <directive
module="core">DocumentRoot</directive> ���þ �ʿ��ϴ�.</p>
<note><title>�� ȣ��Ʈ�� ������</title>
<p>������ ����ϴ� �������� ����ȣ��Ʈ�� �߰��Ѵٸ�
������ ����ϴ� ȣ��Ʈ�� ���� <directive type="section"
module="core">VirtualHost</directive> ��ϵ� �߰��ؾ�
�Ѵ�. �� ��Ͽ� �����ϴ� <directive
module="core">ServerName</directive>�� <directive
module="core">DocumentRoot</directive>�� ��ü <directive
module="core">ServerName</directive>�� <directive
module="core">DocumentRoot</directive>�� ���ƾ� �Ѵ�.
�������Ͽ��� �� ����ȣ��Ʈ�� ���� ���� ������ �⺻ ȣ��Ʈ��
�ȴ�.</p>
</note>
<p>���� ��� <code>www.domain.tld</code> �������� �����ϰ�
�־�µ� ���� IP �ּҿ�
<code>www.otherdomain.tld</code>�� ����ȣ��Ʈ�� �߰��ϰ�
�ʹٰ� ��������. <code>httpd.conf</code>�� ������ ����
�߰��ϸ� �ȴ�:</p>
<example>
NameVirtualHost *:80<br />
<br />
&lt;VirtualHost *:80&gt;<br />
<indent>
ServerName www.domain.tld<br />
ServerAlias domain.tld *.domain.tld<br />
DocumentRoot /www/domain<br />
</indent>
&lt;/VirtualHost&gt;<br />
<br />
&lt;VirtualHost *:80&gt;<br />
<indent>ServerName www.otherdomain.tld<br />
DocumentRoot /www/otherdomain<br />
</indent>
&lt;/VirtualHost&gt;<br />
</example>
<p><directive module="core">NameVirtualHost</directive>��
<directive type="section" module="core">VirtualHost</directive>
���þ� �� ��� <code>*</code> ��� ���� IP �ּҸ� ������
���� �ִ�. ���� ���, �̷������� �� IP �ּҿ� ���� �̸����
����ȣ��Ʈ���� ������, �ٸ� �ּҿ� IP��� Ȥ�� �̸����
����ȣ��Ʈ���� ���� �� �ִ�.</p>
<p>� ������ ���� �̸����� ������ �� �ֱ� �ٶ���. �̴�
<directive type="section" module="core">VirtualHost</directive>
���� �ȿ� <directive module="core">ServerAlias</directive>
���þ ����Ͽ� �����ϴ�. ���� ��� ���� ù��° <directive
type="section" module="core">VirtualHost</directive> ��Ͽ���
<directive module="core">ServerAlias</directive> ���þ
����ϸ� ������ �̸����� ���� ������Ʈ�� �� �� �ִ�:</p>
<example>
ServerAlias domain.tld *.domain.tld
</example>
<p><code>domain.tld</code> �����ο� �ִ� ��� ȣ��Ʈ�� ����
��û�� <code>www.domain.tld</code> ����ȣ��Ʈ�� �����Ѵ�.
�̸��� �ٶ� ���ϵ�ī�� ���� <code>*</code>�� <code>?</code>��
����� �� �ִ�. ���� <directive
module="core">ServerName</directive>�̳� <code>ServerAlias</code>��
�̸��� ����־�ٰ� ���� �ƴϴ�. ���� �� �̸����� ������
IP �ּҷ� �����ϵ��� DNS ������ �˸°� �����ؾ� �Ѵ�.</p>
<p>���������� <directive type="section"
module="core">&lt;VirtualHost&gt;</directive> �ȿ� �ٸ�
���þ���� ����Ͽ� ����ȣ��Ʈ�� �ڼ��� ������ �� �ִ�.
��κ��� ���þ ����� �� ������, ��õ� ����ȣ��Ʈ�� ��������
�����Ѵ�. � ���þ ��밡������ �˷��� ���þ��� <a
href="/mod/directive-dict.html#Context">������</a>��
Ȯ���϶�. (<directive type="section"
module="core">&lt;VirtualHost&gt;</directive> ���� �ƴ�)
<em>�ּ�������</em>���� ������ ���� ���þ�� ����ȣ��Ʈ��
���� ���� ���þ ��� ��쿡�� ���ȴ�.</p>
<p>��û�� ������ ������ ���� <directive
module="core">NameVirtualHost</directive>���� ������ IP
�ּ����� �˻��Ѵ�. �׷��ٸ� �� IP �ּҸ� ���� <directive
type="section" module="core">VirtualHost</directive>
���ǵ鿡�� ��û�� ȣ��Ʈ��� ��ġ�ϴ� <directive
module="core">ServerName</directive>�̳�
<code>ServerAlias</code>�� ã�´�. ã���� �� ������ ����Ѵ�.
������ ����ȣ��Ʈ�� ã�����ϸ�, IP �ּҿ� �ش��ϴ�
<strong>����ȣ��Ʈ���� ù��° ��</strong>�� ����Ѵ�.</p>
<p>��������� ó���� ���� ����ȣ��Ʈ�� <em>�⺻</em>
����ȣ��Ʈ�� �ȴ�. IP �ּҰ� <directive
module="core">NameVirtualHost</directive> ���þ �ش��ϸ�,
<em>�ּ���</em>�� <directive module="core">DocumentRoot</directive>��
<strong>����</strong> ������� �ʴ´�. Ư�� ����ȣ��Ʈ��
�ش������ʴ� ��û�� �����Ϸ��� ������ <directive type="section"
module="core">VirtualHost</directive>�� ��� �������Ͽ���
���� �������� �ϸ� �ȴ�.</p>
</section>
<section id="compat"><title>������ ������� ȣȯ</title>
<p>�̹� ������ �̸���� ����ȣ��Ʈ�� �ùٷ� �����ϱ�����
�ʿ��� ������ �������ʴ� Ŭ���̾�Ʈ�� �ִ�. �̷� Ŭ���̾�Ʈ��
�׻� ��û�� IP �ּҿ� ���� ù��°�� ������ ����ȣ��Ʈ
(<cite>������</cite> �̸���� ����ȣ��Ʈ)��
�����Ѵ�.</p>
<note><title>�󸶳� ������ ���� ���ϴ°�?</title>
<p>���⼭ �����Ǿ����� ������ ����� ������ ���� ���Ѵ�.
���ó� �̷� ������ ����� ���� ���Ǿ��. ����
������� ��� �̸���� ����ȣ��Ʈ�� �ʿ��� <code>Host</code>
����� ������.</p>
</note>
<p>�� ������ �ణ �����彺������ <directive
module="core">ServerPath</directive> ���þ�� �ذ��� �� �ִ�:</p>
<p>���� ��:</p>
<example>
NameVirtualHost 111.22.33.44<br />
<br />
&lt;VirtualHost 111.22.33.44&gt;<br />
<indent>
ServerName www.domain.tld<br />
ServerPath /domain<br />
DocumentRoot /web/domain<br />
</indent>
&lt;/VirtualHost&gt;<br />
</example>
<p>�̰� ���� ���ΰ�? "<code>/domain</code>"�� �����ϴ�
URI�� ���� ��û�� ����ȣ��Ʈ <code>www.domain.tld</code>��
�����Ѵ�. ��, <code>Host:</code> ����� ������ Ŭ���̾�Ʈ��
<code>http://www.domain.tld/</code>�����ε� ������ �� ������,
<code>http://www.domain.tld/domain/</code>���δ� ���
Ŭ���̾�Ʈ�� �������� ������ �� �ִ�.</p>
<p>�̸� ���� ������ ����ȣ��Ʈ�� �ִ� ��������
<code>http://www.domain.tld/domain/</code>���� ���� ��ũ��
�ִ´�. �׸��� ����ȣ��Ʈ ������������ ��븵ũ (���� ���,
"<code>file.html</code>" �̳� "<code>/icons/image.gif</code>")
Ȥ�� ("<code>http://www.domain.tld/domain/misc/file.html</code>"�̳�
"<code>/domain/misc/file.html</code>"�� ����) �տ�
<code>/domain/</code>�� ���� ��ũ���� ����Ѵ�.</p>
<p>���� ��Ģ�� �ʿ������� �� ��Ģ�� ��� ��κ��� ���
���� ���̳� ������ ���̳� ������ ��� ������� ��������
�� �� �ִ�.</p>
</section>
</manualpage>