Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek examples.html.ko.euc-kr   Sprache: unbekannt

 
Columbo aufrufen.euc-kr Download desUnknown {[0] [0] [0]}Datei anzeigen

<?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>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
        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" type="text/javascript">
</script>

<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="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</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="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <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"> en </a> |
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a> |
<a href="../tr/vhosts/examples.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </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"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><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><h3>����</h3><ul class="seealso"><li><a href="#comments_section">Comments</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.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 />
    <VirtualHost *:80><br />
    <span class="indent">
      DocumentRoot /www/example1<br />
      ServerName www.example.com<br />
      <br />
      # �ٸ� ���þ�鵵 �ִ�<br />
      <br />
    </span>
    </VirtualHost><br />
    <br />
    <VirtualHost *:80><br />
    <span class="indent">
      DocumentRoot /www/example2<br />
      ServerName www.example.org<br />
      <br />
      # �ٸ� ���þ�鵵 �ִ�<br />
      <br />
    </span>
    </VirtualHost>
    </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 />
            <VirtualHost 172.20.30.40><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 />
    <VirtualHost 172.20.30.50><br />
    <span class="indent">
        DocumentRoot /www/example1<br />
        ServerName www.example.com<br />
      <br />
        # �ٸ� ���þ�鵵 �ִ� ...<br />
    <br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.50><br />
    <span class="indent">
        DocumentRoot /www/example2<br />
        ServerName www.example.org<br />
    <br />
        # �ٸ� ���þ�鵵 �ִ� ...<br />
    <br />
    </span>
    </VirtualHost>
    </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><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 />
    <VirtualHost 192.168.1.1 172.20.30.40><br />
    <span class="indent">
        DocumentRoot /www/server1<br />
        ServerName server.example.com<br />
        ServerAlias server<br />
    </span>
    </VirtualHost>
    </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���� <VirtualHost
    name:port>�� Ȥ�� 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 />
    <VirtualHost 172.20.30.40:80><br />
    <span class="indent">
        ServerName www.example.com<br />
        DocumentRoot /www/domain-80<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40:8080><br />
    <span class="indent">
        ServerName www.example.com<br />
        DocumentRoot /www/domain-8080<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40:80><br />
    <span class="indent">
        ServerName www.example.org<br />
        DocumentRoot /www/otherdomain-80<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40:8080><br />
    <span class="indent">
        ServerName www.example.org<br />
        DocumentRoot /www/otherdomain-8080<br />
    </span>
    </VirtualHost>
    </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.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 />
    <VirtualHost 172.20.30.40><br />
    <span class="indent">
        DocumentRoot /www/example1<br />
        ServerName www.example.com<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.50><br />
    <span class="indent">
        DocumentRoot /www/example2<br />
        ServerName www.example.org<br />
    </span>
    </VirtualHost>
    </code></p></div>

    <p><code><VirtualHost></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.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 />
    <VirtualHost 172.20.30.40:80><br />
    <span class="indent">
        DocumentRoot /www/example1-80<br />
        ServerName www.example.com<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40:8080><br />
    <span class="indent">
        DocumentRoot /www/example1-8080<br />
        ServerName www.example.com<br />
  </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.50:80><br />
    <span class="indent">
        DocumentRoot /www/example2-80<br />
        ServerName www.example.org<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.50:8080><br />
    <span class="indent">
        DocumentRoot /www/example2-8080<br />
        ServerName www.example.org<br />
    </span>
    </VirtualHost>
    </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 />
    <VirtualHost 172.20.30.40><br />
    <span class="indent">
        DocumentRoot /www/example1<br />
        ServerName www.example.com<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40><br />
    <span class="indent">
        DocumentRoot /www/example2<br />
        ServerName www.example.org<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40><br />
    <span class="indent">
        DocumentRoot /www/example3<br />
        ServerName www.example3.net<br />
    </span>
    </VirtualHost><br />
  <br />
    # IP-���<br />
    <VirtualHost 172.20.30.50><br />
    <span class="indent">
        DocumentRoot /www/example4<br />
        ServerName www.example4.edu<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.60><br />
    <span class="indent">
        DocumentRoot /www/example5<br />
        ServerName www.example5.gov<br />
    </span>
    </VirtualHost>
    </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>
    

    <VirtualHost _default_:*><br />
    <span class="indent">
        DocumentRoot /www/default<br />
    </span>
    </VirtualHost>
    </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>
    

    <VirtualHost _default_:80><br />
    <span class="indent">
        DocumentRoot /www/default80<br />
        # ...<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost _default_:*><br />
    <span class="indent">
        DocumentRoot /www/default<br />
        # ...<br />
    </span>
    </VirtualHost>
    </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>
    

    <VirtualHost _default_:80><br />
    DocumentRoot /www/default<br />
    ...<br />
    </VirtualHost>
    </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.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 />
    <VirtualHost 172.20.30.40 172.20.30.50><br />
    <span class="indent">
        DocumentRoot /www/example2<br />
        ServerName www.example.org<br />
        # ...<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40><br />
    <span class="indent">
        DocumentRoot /www/example3<br />
        ServerName www.example.net<br />
        ServerAlias *.example.net<br />
        # ...<br />
    </span>
    </VirtualHost>
    </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 />
    <VirtualHost 172.20.30.40><br />
    <span class="indent">
        # primary vhost<br />
        DocumentRoot /www/subdomain<br />
        RewriteEngine On<br />
        RewriteRule ^/.* /www/subdomain/index.html<br />
        # ...<br />
    </span>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40><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>
    </VirtualHost><br />
  <br />
    <VirtualHost 172.20.30.40><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>
    </VirtualHost>
    </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"> en </a> |
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a> |
<a href="../tr/vhosts/examples.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.4/vhosts/examples.html';
(function(w, d) {
    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
        d.write('<div id="comments_thread"><\/div>');
        var s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page='&nbsp;+ comments_identifier;
        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
    }
    else { 
        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
    }
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2025 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="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
//--><!]]></script>
</body></html>

[ 0.108Quellennavigators  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge