examples.html.ja.euc-jp revision c7811a175dc15d2172cc95f1c9791bbb6caf9b04
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<?xml version="1.0" encoding="EUC-JP"?>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd This file is generated from xml source: DO NOT EDIT
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd -->
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<title>�С������ۥ��Ȥ��� - Apache HTTP ������</title>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
2e545ce2450a9953665f701bb05350f0d3f26275nd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<body id="manual-page"><div id="page-header">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<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>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<p class="apache">Apache HTTP ������ ������� 2.1</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<img alt="" src="/images/feather.gif" /></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<div id="path">
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP ������</a> &gt; <a href="http://httpd.apache.org/docs-project/">�ɥ�����ơ������</a> &gt; <a href="../">�С������ 2.1</a> &gt; <a href="./">�С������ۥ���</a></div><div id="page-content"><div id="preamble"><h1>�С������ۥ��Ȥ���</h1>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="toplang">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<p><span>Available Languages: </span><a href="/en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<a href="/ja/vhosts/examples.html" title="Japanese">&nbsp;ja&nbsp;</a> |
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<a href="/ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd</div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd <p>����ʸ��ϡ��С������ۥ��Ȥ�����κݤ�
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi �褯������������ΤǤ������ꤷ�Ƥ����оݤ� <a href="name-based.html">̾���١���</a> �� <a href="ip-based.html">IP �١���</a> �ΥС������ۥ��Ȥ�Ȥä�
c04f76acce77126cf88b09350e56ea8c6b4a064enilgun ��ĤΥ����Ф�ʣ���Υ����֥����Ȥ��Ѥ��Ƥ�������Ǥ���
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd ��ĤΥץ?�������Фθ���ʣ���Υ����Ф��Ѥ��륵���ȸ�����
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end �����϶᡹�񤫤��Ϥ��Ǥ���</p>
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen</div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#purename">��Ĥ� IP ���ɥ쥹�Ǥ����Ĥ���̾���١�����
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem �����֥����Ȥ�¹Ԥ���</a></li>
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem<li><img alt="" src="/images/down.gif" /> <a href="#twoips">ʣ���� IP ���ɥ쥹�Τ���ۥ��Ȥ�̾���١�����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ۥ��ƥ��󥰤�Ԥʤ�</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#intraextra">�㤦 IP ���ɥ쥹 (�㤨�С������ȳ������ɥ쥹)
3f08db06526d6901aa08c110b5bc7dde6bc39905nd ��Ʊ������ƥ�Ĥ�����</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#port">�㤦�ݡ��Ȥǰ㤦�����Ȥ򱿱Ĥ���</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#ip">IP �١����ΥС������ۥ��ƥ���</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#ipport">�ݡ��ȥ١����� IP �١����κ����ä�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �С������ۥ���</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#mixed">̾���١����� IP �١����򺮤���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �С������ۥ���</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#default"><code>_default_</code> �ΥС������ۥ��Ȥ�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �Ȥ�</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#migrate">̾���١����ΥС������ۥ��Ȥ��� IP �١�����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �С������ۥ��Ȥ˰ܹԤ���</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<li><img alt="" src="/images/down.gif" /> <a href="#serverpath"><code>ServerPath</code> �ǥ��쥯�ƥ��֤�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �Ȥ�</a></li>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd</ul></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
71fccc298df6a1540d408151a26aa22beed55d0bnd<div class="section">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<h2><a name="purename" id="purename">��Ĥ� IP ���ɥ쥹�Ǥ����Ĥ���̾���١�����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �����֥����Ȥ�¹Ԥ���</a></h2>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>�����Ф� IP ���ɥ쥹���ij�����Ƥ��Ƥ��ơ�DNS �ǥޥ����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ʣ����̾�� (CNAME) �����ꤵ��Ƥ��ޤ������Υޥ����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <code>www.example.com</code> �� <code>www.example.org</code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �Τ���Υ����֥����Ф�¹Ԥ��������Ȥ��ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="note"><h3>��</h3><p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd Apache �����Ф�����ǥС������ۥ��Ȥ�����򤷤������ǡ�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �Τ�ʤ��֤ˤ��Υۥ���̾���б����� DNS �Υ���ȥ꤬
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �������줿��Ϥ��ޤ��󡣤��Υ����Ф� IP ���ɥ쥹�˲�褵���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �褦�� DNS ��̾������Ͽ���ʤ����<em>�ʤ�ޤ���</em>��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �����Ǥʤ���ï�⤢�ʤ��Υ����֥����Ȥ򸫤뤳�ȤϤǤ��ޤ���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �?����ǤΥƥ��ȤΤ���� <code>hosts</code> �ե������
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ����ȥ���ɲä��뤳�Ȥ�Ǥ��ޤ��������ξ��Ϥ���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd hosts ����ȥ�Τ���ޥ��󤫤餷��ư��ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="example"><h3>����������</h3><p><code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # Ensure that Apache listens on port 80<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd Listen 80<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # Listen for virtual host requests on all IP addresses<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost *:80<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost *:80&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/example1<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ServerName www.example.com<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # Other directives here<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </span>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;/VirtualHost&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost *:80&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/example2<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ServerName www.example.org<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # Other directives here<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </span>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;/VirtualHost&gt;
71fccc298df6a1540d408151a26aa22beed55d0bnd </code></p></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>�������ꥹ���Ϥ��٤ƤΥ��ɥ쥹�˥ޥå����ޤ��Τǡ��祵���Ф�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ꥯ�����Ȥ򰷤��ޤ���<code>www.example.com</code> ��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ǽ�ˤ��뤿�ᡢͥ���̤ϰ��ֹ⤯�ʤꡢ<cite>default</cite> �⤷����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <cite>primary</cite> �Υ����Фȹͤ��뤳�Ȥ��Ǥ��ޤ����Ĥޤꡢ�ꥯ�����Ȥ�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ɤ� <code>ServerName</code> �ǥ��쥯�ƥ��֤ˤ�ޥå����ʤ���硢
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ���ֺǽ�� <code>VirtualHost</code> �ˤ�갷���ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="note"><h3>��</h3>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p><code>*</code> �򥷥��ƥ�μºݤ� IP ���ɥ쥹���֤�������
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ���Ȥ�Ǥ��ޤ������ξ��� <code>VirtualHost</code> �ΰ����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <code>NameVirtualHost</code> �ΰ����Ʊ����<em>���ʤ���Фʤ�ޤ���
5652dbe450e4fcfdf36d4cfb42d7f2345ded29a4maczniak </em>:</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="example"><p><code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost 172.20.30.40<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.40&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # etc ...
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </code></p></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>��������IP ���ɥ쥹��ͽ¬�Բ�ǽ�ʥ����ƥ�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �����㤨�Хץ�Х�������ưŪ�� IP ���ɥ쥹��������Ʋ��餫��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �����ʥߥå� DNS ��ȤäƤ�����ʤɡ����ˤ����Ƥϡ�<code>*</code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ����Ϥ��������Ǥ���<code>*</code> �Ϥ��٤Ƥ� IP ���ɥ쥹��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ޥå����ޤ��Τǡ���������ˤ��Ƥ����� IP ���ɥ쥹���ѹ�����Ƥ�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �����ѹ�������ư��ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>̾���١����ΥС������ۥ��ƥ��󥰤ǤϤۤܤ��٤Ƥξ����ǡ�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �嵭������Ǵ�˾������ˤʤäƤ��뤳�ȤǤ��礦��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ºݤ������꤬ư��ʤ��Τϡ�IP ���ɥ쥹��ݡ��Ȥΰ㤤�ˤ�ä�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �㤦����ƥ�Ĥ�����Ȥ������Ǥ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="section">
71fccc298df6a1540d408151a26aa22beed55d0bnd<h2><a name="twoips" id="twoips">ʣ���� IP ���ɥ쥹�Τ���ۥ��Ȥ�̾���١�����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ۥ��ƥ��󥰤�Ԥʤ�</a></h2>
a8703cfb67133446eef7af1043640e71486e9ecand
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="note">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <h3>��</h3><p>��������������Ƥ�����ˡ�� IP ���ɥ쥹��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ���Ĥ��äƤ�Ʊ�ͤˤǤ��ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>�����Фˤ���� IP ���ɥ쥹���Ĥ��Ƥ��ޤ��������
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd (<code>172.20.30.40</code>) �Ǥϼ祵����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <code>server.domain.com</code> �򰷤����⤦����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd (<code>172.20.30.50</code>) �Ǥ���Ĥ�����ʾ�ο���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �С������ۥ��Ȥ򰷤��ޤ���</p>
71fccc298df6a1540d408151a26aa22beed55d0bnd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="example"><h3>����������</h3><p><code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
71fccc298df6a1540d408151a26aa22beed55d0bnd Listen 80<br />
71fccc298df6a1540d408151a26aa22beed55d0bnd <br />
71fccc298df6a1540d408151a26aa22beed55d0bnd # This is the "main" server running on 172.20.30.40<br />
71fccc298df6a1540d408151a26aa22beed55d0bnd ServerName server.domain.com<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/mainserver<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
b3c7a2279fa7a45f5807d9a404760b9b3760df50nd # This is the other address<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost 172.20.30.50<br />
316f02e3836836c82e19019ff23f90a7ebc65289nilgun <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.50&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/example1<br />
22d5d84393d960a2027f472036f3fee15d7dbce9nd ServerName www.example.com<br />
22d5d84393d960a2027f472036f3fee15d7dbce9nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # Other directives here ...<br />
4b311579b2c8aebac85fb7cb8ac89e6c37b4bc1asf <br />
50c04f297d76a57ead2fa6b73845f7563b1fc788sf </span>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;/VirtualHost&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.50&gt;<br />
623eebe956d9c2d6d073ed3eae855b56030b40e9noodl <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/example2<br />
ffb88a4885747797937e30a5ac8b1606da3cb4adnd ServerName www.example.org<br />
909ce17e2bd0faef7b1c294f2307f009793fd493nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd # Other directives here ...<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
cd34a6fbf0a2619544a72eadb73f309370bf6682wrowe </span>
65a611af7093423efb91e5794b8887a527d4cf63trawick &lt;/VirtualHost&gt;
42af92a661a06b3cebc88d585aad75064a309d51nd </code></p></div>
ffb88a4885747797937e30a5ac8b1606da3cb4adnd
6fe26506780e73be2a412d758af77fafdf03291and <p><code>172.20.30.50</code> �ʳ��Υ��ɥ쥹�ؤΥꥯ�����Ȥϼ祵����
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �������ޤ���<code>172.20.30.50</code> �ؤΡ�̤�ΤΥۥ���̾�ޤ���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <code>Host:</code> �إå��ʤ��Υꥯ�����Ȥ� <code>www.example.com</code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �������ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="section">
08cf4a15275e4cb65a424b3a1db5410bfb51085cjim<h2><a name="intraextra" id="intraextra">�㤦 IP ���ɥ쥹 (�㤨�С������ȳ������ɥ쥹)
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ��Ʊ������ƥ�Ĥ�����</a></h2>
78f97ce162b66a0dbfd7af4dcd9984f162569b04minfrin
f5a398cc8880978754903f9ece8e4beb63a81cedrbowen <p>�����Хޥ���� IP ���ɥ쥹����� (<code>192.168.1.1</code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �� <code>172.20.30.40</code>) ��äƤ��ޤ������Υޥ��������
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd (����ȥ�ͥå�) �� ���� (���󥿡��ͥå�) �Υͥåȥ���δ֤�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ����ޤ���<code>server.example.com</code> �ϥͥåȥ���γ������
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �������ɥ쥹 (<code>172.20.30.40</code>) �Ȥ��Ʋ�褵��ޤ�����
7906201913b68fe78b9d6a22ab33bf21d82c490eminfrin �ͥåȥ�����椫����������ɥ쥹 (<code>192.168.1.1</code>)
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �Ȥ��Ʋ�褵��ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
05ede5110427cb9dc071cc671d5aaba5d3b88c79nd <p><code>VirtualHost</code> ��Ĥ����ǥ����Ф������Υꥯ�����Ȥ�
e8b603fa9ccf7b17b11b42df6d8916fd97c2331dnd �����Υꥯ�����Ȥ�ξ���Ʊ������ƥ�ĤDZ����褦�ˤǤ��ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
4ed26c413f67a5aae20b95909828f30bb5dc2286poirier <div class="example"><h3>����������</h3><p><code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
611049e38bfbaeb173d2d7fab2e44a48753436a1nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost 192.168.1.1<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost 172.20.30.40<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 192.168.1.1 172.20.30.40&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/server1<br />
03a4ff9ac4c9b8009249010e7c53bb86ff05915and ServerName server.example.com<br />
5effc8b39fae5cd169d17f342bfc265705840014rbowen ServerAlias server<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </span>
d0828c8a321dc5e9ea60550f052294669c08cf93jim &lt;/VirtualHost&gt;
d0828c8a321dc5e9ea60550f052294669c08cf93jim </code></p></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
4b5981e276e93df97c34e4da05ca5cf8bbd937dand <p>����Ǥɤ���Υͥåȥ������Υꥯ�����Ȥ�Ʊ�� <code>VirtualHost</code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ǰ�����褦�ˤʤ�ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="note"><h3>��:</h3><p>�����ͥåȥ���Ǥϴ����ʥۥ���̾��
2704de98885368683621b01c8f8f4e4b01557611takashi <code>server.example.com</code> ������ˡ�ñ�� <code>server</code>
2704de98885368683621b01c8f8f4e4b01557611takashi ��Ȥ����Ȥ��Ǥ��ޤ���</p>
2704de98885368683621b01c8f8f4e4b01557611takashi
d0828c8a321dc5e9ea60550f052294669c08cf93jim <p>�����Ǥϡ�IP ���ɥ쥹�Υꥹ�Ȥ򡢤��٤ƤΥ��ɥ쥹��
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd Ʊ������ƥ�ĤDZ���� <code>*</code> ���֤��������ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </div>
c819c19c2f1ffbf3a3f12a4070cc6c3f4ea2a6f2sf
d2b809e5d72658bff23819d8b77f20e4939af541nd </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="section">
a4687128d43515b5791a6efc6ba55314478f9552jim<h2><a name="port" id="port">�㤦�ݡ��Ȥǰ㤦�����Ȥ򱿱Ĥ���</a></h2>
04bab87733a0e93a926e82311c85cd8ac06a032fnd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>Ʊ�� IP ��ʣ���Υɥᥤ�󤬤��ꡢ�����ʣ���Υݡ��Ȥ�Ȥä�
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ꥯ�����Ȥ򰷤������Ȥ�������ޤ���"NameVirtualHost" ���������
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd �ݡ��Ȥ�������뤳�Ȥǡ������ư������ޤ���
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost name:port ̵���� Listen �ǥ��쥯�ƥ��֤�
5effc8b39fae5cd169d17f342bfc265705840014rbowen &lt;VirtualHost name:port&gt; ��Ȥ����Ȥ��Ƥ⡢���������ư��ޤ���</p>
27d778df0b517e1578f907d2e51eb961cd8ee5fbjim
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="example"><h3>����������</h3><p><code>
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd Listen 80<br />
438b4817913a5ff55d9cad4c7ddf133330b4466ejim Listen 8080<br />
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi <br />
50cb7e2b30597f481fee57bac945190f06ebcc58jorton NameVirtualHost 172.20.30.40:80<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd NameVirtualHost 172.20.30.40:8080<br />
4126704c4950bfd46d32ad54e3b106ac6d868a73sf <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.40:80&gt;<br />
0a69d9bb491d9810892a9949c01403a1de3c7ac2nd <span class="indent">
245eb3a84b8bc2b350c3a39ba2599444d443b50ajim ServerName www.example.com<br />
4ed26c413f67a5aae20b95909828f30bb5dc2286poirier DocumentRoot /www/domain-80<br />
6d20aeba2c4aa0938bc6e0659d13adc7670ff421poirier </span>
5f4e50966b2b9b58436a1651cbe588d1b595657ewrowe &lt;/VirtualHost&gt;<br />
11495c9f0bd33e51a25b4d532beadfbcf9b944a3nilgun <br />
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi &lt;VirtualHost 172.20.30.40:8080&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
79b024b81f6bb3c44dce77a7552191daf8b522d2jim ServerName www.example.com<br />
f772e8f448c223e5ea306f1bf92d97d968f972d5jim DocumentRoot /www/domain-8080<br />
f772e8f448c223e5ea306f1bf92d97d968f972d5jim </span>
f772e8f448c223e5ea306f1bf92d97d968f972d5jim &lt;/VirtualHost&gt;<br />
fac8c35bfb158112226ab43ddf84d59daca5dc30nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.40:80&gt;<br />
1de1266f0ea387d6373be8415745dfd2ab876341jim <span class="indent">
1de1266f0ea387d6373be8415745dfd2ab876341jim ServerName www.example.org<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/otherdomain-80<br />
5effc8b39fae5cd169d17f342bfc265705840014rbowen </span>
5effc8b39fae5cd169d17f342bfc265705840014rbowen &lt;/VirtualHost&gt;<br />
5effc8b39fae5cd169d17f342bfc265705840014rbowen <br />
5effc8b39fae5cd169d17f342bfc265705840014rbowen &lt;VirtualHost 172.20.30.40:8080&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ServerName www.example.org<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/otherdomain-8080<br />
898711b68797304101de0882fa576c8908acfae6nd </span>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;/VirtualHost&gt;
4044e4b6cb07cf7fa8e90676fafffe543c1d439bjim </code></p></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
50cb7e2b30597f481fee57bac945190f06ebcc58jorton </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<div class="section">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd<h2><a name="ip" id="ip">IP �١����ΥС������ۥ��ƥ���</a></h2>
03c25fb6f628ac81f2ecb637d1e7502dcee783f3nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p>������ <code>www.example.com</code> �� <code>www.example.org</code>
b43f840409794ed298e8634f6284741f193b6c4ftakashi �ˤ��줾���褵��롢��Ĥ� IP ���ɥ쥹 (<code>172.20.30.40</code> ��
4126704c4950bfd46d32ad54e3b106ac6d868a73sf <code>172.20.30.50</code>) ������ޤ���</p>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <div class="example"><h3>����������</h3><p><code>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd Listen 80<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.40&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <span class="indent">
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd DocumentRoot /www/example1<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd ServerName www.example.com<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </span>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;/VirtualHost&gt;<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd &lt;VirtualHost 172.20.30.50&gt;<br />
71fccc298df6a1540d408151a26aa22beed55d0bnd <span class="indent">
71fccc298df6a1540d408151a26aa22beed55d0bnd DocumentRoot /www/example2<br />
71fccc298df6a1540d408151a26aa22beed55d0bnd ServerName www.example.org<br />
71fccc298df6a1540d408151a26aa22beed55d0bnd </span>
71fccc298df6a1540d408151a26aa22beed55d0bnd &lt;/VirtualHost&gt;
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </code></p></div>
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd <p><code>&lt;VirtualHost&gt;</code> �ǥ��쥯�ƥ��֤Τɤ�Ǥ�
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd ���ꤵ��Ƥ��ʤ����ɥ쥹 (�㤨�� <code>localhost</code>) �ϡ�
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd �祵���Ф�����Ф����˹Ԥ��ޤ���</p>
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi
c04f76acce77126cf88b09350e56ea8c6b4a064enilgun </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd<div class="section">
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end<h2><a name="ipport" id="ipport">�ݡ��ȥ١����� IP �١����κ����ä�
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen �С������ۥ���</a></h2>
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen
727872d18412fc021f03969b8641810d8896820bhumbedooh <p>�����Хޥ���Ϥ��줾�� <code>www.example.com</code> ��
0d0ba3a410038e179b695446bb149cce6264e0abnd <code>www.example.org</code> �ˤ��줾���褵��롢IP ���ɥ쥹�����
727872d18412fc021f03969b8641810d8896820bhumbedooh (<code>192.168.1.1</code> �� <code>172.20.30.40</code>) ��äƤ��ޤ���
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh �ɤ����ݡ��� 80 �� 8080 �ǥۥ��Ȥ����餻�ޤ���</p>
0d0ba3a410038e179b695446bb149cce6264e0abnd
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh <div class="example"><h3>����������</h3><p><code>
727872d18412fc021f03969b8641810d8896820bhumbedooh
0d0ba3a410038e179b695446bb149cce6264e0abnd
0d0ba3a410038e179b695446bb149cce6264e0abnd Listen 172.20.30.40:80<br />
0d0ba3a410038e179b695446bb149cce6264e0abnd Listen 172.20.30.40:8080<br />
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh Listen 172.20.30.50:80<br />
0d0ba3a410038e179b695446bb149cce6264e0abnd Listen 172.20.30.50:8080<br />
0d0ba3a410038e179b695446bb149cce6264e0abnd <br />
0d0ba3a410038e179b695446bb149cce6264e0abnd &lt;VirtualHost 172.20.30.40:80&gt;<br />
727872d18412fc021f03969b8641810d8896820bhumbedooh <span class="indent">
0d0ba3a410038e179b695446bb149cce6264e0abnd DocumentRoot /www/example1-80<br />
0d0ba3a410038e179b695446bb149cce6264e0abnd ServerName www.example.com<br />
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh </span>
07dc96d063d49299da433f84b5c5681da9bbdf68rbowen &lt;/VirtualHost&gt;<br />
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen <br />
0d0ba3a410038e179b695446bb149cce6264e0abnd &lt;VirtualHost 172.20.30.40:8080&gt;<br />
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd <span class="indent">
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd DocumentRoot /www/example1-8080<br />
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd ServerName www.example.com<br />
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd </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><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.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-based<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>¾�ΥС������ۥ��Ȥ�
�Ȥ��Ƥ��ʤ����ɥ쥹�ȥݡ��Ȥ��Ȥ߹�碌���ؤ�<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>���Τ褦�˥磻��ɥ����ɤΥݡ��Ȥǥǥե���ȤΥС������ۥ��Ȥ�
���ꤹ��ȡ��祵���Ф˥ꥯ�����Ȥ��Ԥ��Τ��ɤ��ޤ���</p>
<p>�ǥե���ȤΥС������ۥ��Ȥ�̾���١����ΥС������ۥ��Ȥ�
�Ȥ��Ƥ��륢�ɥ쥹�ȥݡ��Ȥ��Ȥ�����줿�ꥯ�����Ȥ򰷤����Ȥ�
����ޤ��󡣥ꥯ�����Ȥ������� <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> ��Ȥä�
ñ��ξ���ڡ��� (�䥹����ץ�) �˽񤭴����뤳�Ȥ��Ǥ��ޤ���</p>
<h3><a name="defaultdifferentports" id="defaultdifferentports">�㤦�ݡ��ȤΤ����
<code>_default_</code> �С������ۥ���</a></h3>
<p>��Ĥ������Ȥۤ�Ʊ���Ǥ����������Ф�ʣ���Υݡ��Ȥ� listen ���Ƥ��ꡢ
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 �֥ݡ��ȤΥǥե���ȥС������ۥ��� (�磻��ɥ����ɥݡ��Ȥ�
�ǥե���ȥС������ۥ��Ȥ������˽񤫤�Ƥ��ʤ���Фʤ�ޤ���) ��
̤����� IP ���ɥ쥹������줿���٤ƤΥꥯ�����Ȥ򰷤��ޤ���
�祵���Фϥꥯ�����Ȥ򰷤��ޤ���</p>
<h3><a name="defaultoneport" id="defaultoneport">��ĤΥݡ��Ȥ��Ф��Ƥ�����
<code>_default_</code> �С������ۥ���</a></h3>
<p>80 �֥ݡ��Ȥˤϥǥե���ȤΥС������ۥ��Ȥ�ɬ�פǡ�¾��
�С������ۥ��Ȥϥǥե���Ȥ�ɬ�פʤ����Ǥ���</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>�ۥ���̾��̾�� <code>www.example.org</code> �ΥС������ۥ���
(<a href="#name">̾���١���</a>����� 2 ���ܤ�����) �����Ѥ� IP ���ɥ쥹��
�����Ȥ��ޤ���̾���١����ΥС������ۥ��ȤθŤ� IP ���ɥ쥹��
����å��夷�Ƥ���͡��ॵ���Ф�ץ?���Τ���˰ܹԴ�����ξ���
�С������ۥ��Ȥ��󶡤������Ȥ��ޤ���</p>
<p>��ϴ�ñ�Ǥ���ñ�˿����� IP ���ɥ쥹 (<code>172.20.30.50</code>)
�� <code>VirtualHost</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><a name="serverpath" id="serverpath"><code>ServerPath</code> �ǥ��쥯�ƥ��֤�
�Ȥ�</a></h2>
<p>̾���١����ΥС������ۥ��Ȥ���Ĥ��륵���Ф�����Ȥ��ޤ���
�������С������ۥ��Ȥ����뤿��ˤϥ��饤����Ȥ�������
<code>Host:</code> �إå�������ʤ���Фʤ�ޤ���
�Ť� HTTP/1.0 �Ϥ��Τ褦�ʥإå�������ʤ��Τǡ�Apache �ϥ��饤����Ȥ�
�ɤΥС������ۥ��Ȥ�տޤ����Τ����äѤ�狼��ޤ���
(�ʤΤǡ���С������ۥ��Ȥǥꥯ�����Ȥ򰷤��ޤ�)��
��ǽ�ʸ¤�β��̸ߴ��������뤿�ᡢ̾���١����ΥС������ۥ��Ȥ�
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> sub1-vhost �ˤ�갷���ޤ���URL
<code>http://www.sub1.domain.tld/</code> �ؤΥꥯ�����Ȥ�
���饤����Ȥ������� <code>Host:</code> �إå������ä��Ȥ��ˤΤ�
sub1-vhost ���������ޤ���<code>Host:</code> �إå����ʤ����
���饤����Ȥϼ�ۥ��Ȥξ���ڡ��������ޤ���</p>
<p>��Ĵ�̯��ư��򤹤��������뤳�ȤϳФ��Ƥ����Ƥ���������
<code>http://www.sub2.domain.tld/sub1/</code> �ؤΥꥯ�����Ȥ�
<code>Host:</code> �إå����ʤ���� sub1-vhost �ˤ�갷���ޤ���</p>
<p>������ <code>Host:</code> �إå������ä����饤����ȤϤɤ����
URL��<em>�Ĥޤ�</em>��Ƭ�����������̵�����Ȥ���褦��
<code class="directive"><a href="/mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> �ǥ��쥯�ƥ��֤�
�Ȥ��Ƥ��ޤ���</p>
</div></div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="/en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="/ja/vhosts/examples.html" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="/ko/vhosts/examples.html" hreflang="ko" rel="alternate" 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>