1
<?xml version="1.0" encoding="EUC-JP"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5
This file is generated from xml source: DO NOT EDIT
6
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8
<title>�С������ۥ��Ȥ��� - Apache HTTP ������</title>
9
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
13
<body id="manual-page"><div id="page-header">
14
<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>
15
<p class="apache">Apache HTTP ������ ������� 2.2</p>
16
<img alt="" src="../images/feather.gif" /></div>
17
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
19
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP ������</a> > <a href="http://httpd.apache.org/docs/">�ɥ�����ơ������</a> > <a href="../">�С������ 2.2</a> > <a href="./">�С������ۥ���</a></div><div id="page-content"><div id="preamble"><h1>�С������ۥ��Ȥ���</h1>
21
<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> |
22
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Fran���ais"> fr </a> |
23
<a href="../ja/vhosts/examples.html" title="Japanese"> ja </a> |
24
<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
28
<p>����ʸ��ϡ��С������ۥ��Ȥ�����κݤ�
29
�褯���������������ΤǤ������ꤷ�Ƥ����оݤ� <a href="name-based.html">̾���١���</a> �� <a href="ip-based.html">IP �١���</a> �ΥС������ۥ��Ȥ�Ȥä�
30
��ĤΥ����Ф�ʣ���Υ����֥����Ȥ��Ѥ��Ƥ�������Ǥ���
34
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">��Ĥ� IP ���ɥ쥹�Ǥ����Ĥ���̾���١�����
35
�����֥����Ȥ�¹Ԥ���</a></li>
36
<li><img alt="" src="../images/down.gif" /> <a href="#twoips">ʣ���� IP ���ɥ쥹�Τ���ۥ��Ȥ�̾���١�����
38
<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">�㤦 IP ���ɥ쥹 (�㤨�С������ȳ������ɥ쥹)
39
��Ʊ������ƥ�Ĥ�����</a></li>
40
<li><img alt="" src="../images/down.gif" /> <a href="#port">�㤦�ݡ��Ȥǰ㤦�����ȤĤ���</a></li>
41
<li><img alt="" src="../images/down.gif" /> <a href="#ip">IP �١����ΥС������ۥ��ƥ���</a></li>
42
<li><img alt="" src="../images/down.gif" /> <a href="#ipport">�ݡ��ȥ١����� IP �١����κ����ä�
44
<li><img alt="" src="../images/down.gif" /> <a href="#mixed">̾���١����� IP �١�������
46
<li><img alt="" src="../images/down.gif" /> <a href="#proxy"><code>Virtual_host</code> ��
47
mod_proxy ��ʻ�Ѥ���</a></li>
48
<li><img alt="" src="../images/down.gif" /> <a href="#default"><code>_default_</code> �ΥС������ۥ��Ȥ�
50
<li><img alt="" src="../images/down.gif" /> <a href="#migrate">̾���١����ΥС������ۥ��Ȥ��� IP �١�����
51
�С������ۥ��Ȥ˰ܹԤ���</a></li>
52
<li><img alt="" src="../images/down.gif" /> <a href="#serverpath"><code>ServerPath</code> �ǥ��쥯�ƥ��֤�
55
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
57
<h2><a name="purename" id="purename">��Ĥ� IP ���ɥ쥹�Ǥ����Ĥ���̾���١�����
58
�����֥����Ȥ�¹Ԥ���</a></h2>
60
<p>�����Ф� IP ���ɥ쥹���ij�����Ƥ��Ƥ��ơ�DNS �ǥޥ����
61
ʣ����̾�� (CNAME) �����ꤵ��Ƥ��ޤ������Υޥ����
62
<code>www.example.com</code> �� <code>www.example.org</code>
63
�Τ���Υ����֥����Ф�¹Ԥ��������Ȥ��ޤ���</p>
65
<div class="note"><h3>��</h3><p>
66
Apache �����Ф�����ǥС������ۥ��Ȥ�����������ǡ�
67
�Τ�ʤ��֤ˤ��Υۥ���̾���б����� DNS �Υ���ȥ꤬
68
�������줿��Ϥ��ޤ����Υ����Ф� IP ���ɥ쥹�˲�褵���
69
�褦�� DNS ��̾������Ͽ���ʤ����<em>�ʤ�ޤ���</em>��
70
�����Ǥʤ���ï�⤢�ʤ��Υ����֥����Ȥ뤳�ȤϤǤ��ޤ���
71
��������ǤΥƥ��ȤΤ���� <code>hosts</code> �ե������
72
����ȥ���ɲä��뤳�Ȥ�Ǥ��ޤ��������ξ��Ϥ���
73
hosts ����ȥ�Τ���ޥ��餷��ư��ޤ���</p>
76
<div class="example"><h3>����������</h3><p><code>
79
# Ensure that Apache listens on port 80<br />
82
# Listen for virtual host requests on all IP addresses<br />
83
NameVirtualHost *:80<br />
85
<VirtualHost *:80><br />
87
DocumentRoot /www/example1<br />
88
ServerName www.example.com<br />
90
# Other directives here<br />
93
</VirtualHost><br />
95
<VirtualHost *:80><br />
97
DocumentRoot /www/example2<br />
98
ServerName www.example.org<br />
100
# Other directives here<br />
106
<p>�������ꥹ���Ϥ��٤ƤΥ��ɥ쥹�˥ޥå����ޤ��Τǡ��祵���Ф�
107
�ꥯ�����Ȥ��ޤ���<code>www.example.com</code> ��
108
�ǽ�ˤ��뤿�ᡢͥ���̤ϰ��ֹ⤯�ʤꡢ<cite>default</cite> �⤷����
109
<cite>primary</cite> �Υ����Фȹͤ��뤳�Ȥ��Ǥ��ޤ����Ĥޤꡢ�ꥯ�����Ȥ�
110
�ɤ� <code>ServerName</code> �ǥ��쥯�ƥ��֤ˤ�ޥå����ʤ���硢
111
���ֺǽ�� <code>VirtualHost</code> �ˤ�갷���ޤ���</p>
113
<div class="note"><h3>��</h3>
115
<p><code>*</code> ���ƥ�μºݤ� IP ���ɥ쥹���֤�������
116
���Ȥ�Ǥ��ޤ������ξ��� <code>VirtualHost</code> �ΰ�����
117
<code>NameVirtualHost</code> �ΰ�����Ʊ����<em>���ʤ���Фʤ�ޤ���
120
<div class="example"><p><code>
121
NameVirtualHost 172.20.30.40<br />
123
<VirtualHost 172.20.30.40><br />
127
<p>��������IP ���ɥ쥹��ͽ¬�Բ�ǽ�ʥ����ƥ�
128
�����㤨�Хץ��Х�������ưŪ�� IP ���ɥ쥹��������Ʋ��餫��
129
�����ʥߥå� DNS ��ȤäƤ�����ʤɡ����ˤ����Ƥϡ�<code>*</code>
130
����Ϥ���������Ǥ���<code>*</code> �Ϥ��٤Ƥ� IP ���ɥ쥹��
131
�ޥå����ޤ��Τǡ���������ˤ��Ƥ����� IP ���ɥ쥹���ѹ�����Ƥ�
132
�����ѹ�������ư��ޤ���</p>
135
<p>̾���١����ΥС������ۥ��ƥ��ǤϤۤܤ��٤Ƥξ����ǡ�
136
�嵭������Ǵ�˾������ˤʤäƤ��뤳�ȤǤ��礦��
137
�ºݤ������꤬ư��ʤ��Τϡ�IP ���ɥ쥹��ݡ��Ȥΰ㤤�ˤ�ä�
138
�㤦����ƥ�Ĥ�����Ȥ������Ǥ���</p>
140
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
141
<div class="section">
142
<h2><a name="twoips" id="twoips">ʣ���� IP ���ɥ쥹�Τ���ۥ��Ȥ�̾���١�����
143
�ۥ��ƥ���Ԥʤ�</a></h2>
146
<h3>��</h3><p>��������������Ƥ�����ˡ�� IP ���ɥ쥹��
147
���Ĥ��äƤ�Ʊ�ͤˤǤ��ޤ���</p>
150
<p>�����Фˤ���� IP ���ɥ쥹���Ĥ��Ƥ��ޤ��������
151
(<code>172.20.30.40</code>) �Ǥϼ祵����
152
<code>server.domain.com</code> �����⤦����
153
(<code>172.20.30.50</code>) �Ǥ���Ĥ�����ʾ�ο���
154
�С������ۥ��Ȥ��ޤ���</p>
156
<div class="example"><h3>����������</h3><p><code>
161
# This is the "main" server running on 172.20.30.40<br />
162
ServerName server.domain.com<br />
163
DocumentRoot /www/mainserver<br />
165
# This is the other address<br />
166
NameVirtualHost 172.20.30.50<br />
168
<VirtualHost 172.20.30.50><br />
169
<span class="indent">
170
DocumentRoot /www/example1<br />
171
ServerName www.example.com<br />
173
# Other directives here ...<br />
176
</VirtualHost><br />
178
<VirtualHost 172.20.30.50><br />
179
<span class="indent">
180
DocumentRoot /www/example2<br />
181
ServerName www.example.org<br />
183
# Other directives here ...<br />
189
<p><code>172.20.30.50</code> �ʳ��Υ��ɥ쥹�ؤΥꥯ�����Ȥϼ祵����
190
�������ޤ���<code>172.20.30.50</code> �ؤΡ�̤�ΤΥۥ���̾�ޤ���
191
<code>Host:</code> �إå��ʤ��Υꥯ�����Ȥ� <code>www.example.com</code>
194
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
195
<div class="section">
196
<h2><a name="intraextra" id="intraextra">�㤦 IP ���ɥ쥹 (�㤨�С������ȳ������ɥ쥹)
197
��Ʊ������ƥ�Ĥ�����</a></h2>
199
<p>�����Хޥ���� IP ���ɥ쥹����� (<code>192.168.1.1</code>
200
�� <code>172.20.30.40</code>) ���äƤ��ޤ������Υޥ��������
201
(����ȥ�ͥå�) �� ���� (�����ͥå�) �Υͥåȥ���δ֤�
202
����ޤ���<code>server.example.com</code> �ϥͥåȥ���γ������
203
�������ɥ쥹 (<code>172.20.30.40</code>) �Ȥ��Ʋ�褵��ޤ�����
204
�ͥåȥ�����椫����������ɥ쥹 (<code>192.168.1.1</code>)
207
<p><code>VirtualHost</code> ��Ĥ����ǥ����Ф������Υꥯ�����Ȥ�
208
�����Υꥯ�����Ȥ�ξ����Ʊ������ƥ�ĤDZ�������褦�ˤǤ��ޤ���</p>
210
<div class="example"><h3>����������</h3><p><code>
213
NameVirtualHost 192.168.1.1<br />
214
NameVirtualHost 172.20.30.40<br />
216
<VirtualHost 192.168.1.1 172.20.30.40><br />
217
<span class="indent">
218
DocumentRoot /www/server1<br />
219
ServerName server.example.com<br />
220
ServerAlias server<br />
225
<p>����Ǥɤ���Υͥåȥ������Υꥯ�����Ȥ�Ʊ�� <code>VirtualHost</code>
228
<div class="note"><h3>��:</h3><p>�����ͥåȥ���Ǥϴ����ʥۥ���̾��
229
<code>server.example.com</code> ������ˡ�ñ�� <code>server</code>
230
��Ȥ����Ȥ��Ǥ��ޤ���</p>
232
<p>�����Ǥϡ�IP ���ɥ쥹�Υꥹ�Ȥ��٤ƤΥ��ɥ쥹��
233
Ʊ������ƥ�ĤDZ������� <code>*</code> ���֤��������ޤ���</p>
236
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
237
<div class="section">
238
<h2><a name="port" id="port">�㤦�ݡ��Ȥǰ㤦�����ȤĤ���</a></h2>
240
<p>Ʊ�� IP ��ʣ���Υɥᥤ���ꡢ�����ʣ���Υݡ��Ȥ�Ȥä�
241
�ꥯ�����Ȥ������Ȥ�������ޤ���"NameVirtualHost" ���������
242
�ݡ��Ȥ�������뤳�Ȥǡ������ư������ޤ���
243
NameVirtualHost name:port ̵���� Listen �ǥ��쥯�ƥ��֤�
244
<VirtualHost name:port> ��Ȥ����Ȥ��Ƥ⡢���������ư��ޤ���</p>
246
<div class="example"><h3>����������</h3><p><code>
252
NameVirtualHost 172.20.30.40:80<br />
253
NameVirtualHost 172.20.30.40:8080<br />
255
<VirtualHost 172.20.30.40:80><br />
256
<span class="indent">
257
ServerName www.example.com<br />
258
DocumentRoot /www/domain-80<br />
260
</VirtualHost><br />
262
<VirtualHost 172.20.30.40:8080><br />
263
<span class="indent">
264
ServerName www.example.com<br />
265
DocumentRoot /www/domain-8080<br />
267
</VirtualHost><br />
269
<VirtualHost 172.20.30.40:80><br />
270
<span class="indent">
271
ServerName www.example.org<br />
272
DocumentRoot /www/otherdomain-80<br />
274
</VirtualHost><br />
276
<VirtualHost 172.20.30.40:8080><br />
277
<span class="indent">
278
ServerName www.example.org<br />
279
DocumentRoot /www/otherdomain-8080<br />
284
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
285
<div class="section">
286
<h2><a name="ip" id="ip">IP �١����ΥС������ۥ��ƥ���</a></h2>
288
<p>������ <code>www.example.com</code> �� <code>www.example.org</code>
289
�ˤ��줾���褵��롢��Ĥ� IP ���ɥ쥹 (<code>172.20.30.40</code> ��
290
<code>172.20.30.50</code>) ������ޤ���</p>
292
<div class="example"><h3>����������</h3><p><code>
297
<VirtualHost 172.20.30.40><br />
298
<span class="indent">
299
DocumentRoot /www/example1<br />
300
ServerName www.example.com<br />
302
</VirtualHost><br />
304
<VirtualHost 172.20.30.50><br />
305
<span class="indent">
306
DocumentRoot /www/example2<br />
307
ServerName www.example.org<br />
312
<p><code><VirtualHost></code> �ǥ��쥯�ƥ��֤Τɤ�Ǥ�
313
���ꤵ��Ƥ��ʤ����ɥ쥹 (�㤨�� <code>localhost</code>) �ϡ�
314
�祵���Ф�����Ф����˹Ԥ��ޤ���</p>
316
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
317
<div class="section">
318
<h2><a name="ipport" id="ipport">�ݡ��ȥ١����� IP �١����κ����ä�
319
�С������ۥ���</a></h2>
321
<p>�����Хޥ���Ϥ��줾�� <code>www.example.com</code> ��
322
<code>www.example.org</code> �ˤ��줾���褵��롢IP ���ɥ쥹�����
323
(<code>172.20.30.40</code> �� <code>172.20.30.50</code>) ���äƤ��ޤ���
324
�ɤ����ݡ��� 80 �� 8080 �ǥۥ��Ȥ����餻�ޤ���</p>
326
<div class="example"><h3>����������</h3><p><code>
329
Listen 172.20.30.40:80<br />
330
Listen 172.20.30.40:8080<br />
331
Listen 172.20.30.50:80<br />
332
Listen 172.20.30.50:8080<br />
334
<VirtualHost 172.20.30.40:80><br />
335
<span class="indent">
336
DocumentRoot /www/example1-80<br />
337
ServerName www.example.com<br />
339
</VirtualHost><br />
341
<VirtualHost 172.20.30.40:8080><br />
342
<span class="indent">
343
DocumentRoot /www/example1-8080<br />
344
ServerName www.example.com<br />
346
</VirtualHost><br />
348
<VirtualHost 172.20.30.50:80><br />
349
<span class="indent">
350
DocumentRoot /www/example2-80<br />
351
ServerName www.example.org<br />
353
</VirtualHost><br />
355
<VirtualHost 172.20.30.50:8080><br />
356
<span class="indent">
357
DocumentRoot /www/example2-8080<br />
358
ServerName www.example.org<br />
363
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
364
<div class="section">
365
<h2><a name="mixed" id="mixed">̾���١����� IP �١�������
366
�С������ۥ���</a></h2>
368
<p>�����Ĥ��Υޥ���Ǥ�̾���١����Ρ�����¾�Ǥ� IP �١����ΥС������
371
<div class="example"><h3>����������</h3><p><code>
376
NameVirtualHost 172.20.30.40<br />
378
<VirtualHost 172.20.30.40><br />
379
<span class="indent">
380
DocumentRoot /www/example1<br />
381
ServerName www.example.com<br />
383
</VirtualHost><br />
385
<VirtualHost 172.20.30.40><br />
386
<span class="indent">
387
DocumentRoot /www/example2<br />
388
ServerName www.example.org<br />
390
</VirtualHost><br />
392
<VirtualHost 172.20.30.40><br />
393
<span class="indent">
394
DocumentRoot /www/example3<br />
395
ServerName www.example3.net<br />
397
</VirtualHost><br />
400
<VirtualHost 172.20.30.50><br />
401
<span class="indent">
402
DocumentRoot /www/example4<br />
403
ServerName www.example4.edu<br />
405
</VirtualHost><br />
407
<VirtualHost 172.20.30.60><br />
408
<span class="indent">
409
DocumentRoot /www/example5<br />
410
ServerName www.example5.gov<br />
415
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
416
<div class="section">
417
<h2><a name="proxy" id="proxy"><code>Virtual_host</code> ��
418
mod_proxy ��ʻ�Ѥ���</a></h2>
420
<p>������ϡ��ե����¦�ΥС������ۥ��Ȥ�¾�Υޥ���إץ��������ޤ���
421
��Ǥ� <code>192.168.111.2</code> �Υޥ���ǤϥС������ۥ���̾��
422
Ʊ��̾�������ꤵ��Ƥ��ޤ���ʣ���Υۥ���̾�����Υޥ���˥ץ���������
423
���ϡ�<code class="directive"><a href="../mod/mod_proxy.html#proxypreservehost on">ProxyPreserveHost On</a></code>
424
�ǥ��쥯�ƥ��֤�Ȥäơ���˾�Υۥ���̾���Ϥ���褦�ˤʤ�ޤ���
427
<div class="example"><p><code>
428
<VirtualHost *:*><br />
429
ProxyPreserveHost On<br />
430
ProxyPass / http://192.168.111.2<br />
431
ProxyPassReverse / http://192.168.111.2/<br />
432
ServerName hostname.example.com<br />
436
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
437
<div class="section">
438
<h2><a name="default" id="default"><code>_default_</code> �ΥС������ۥ��Ȥ�
441
<h3><a name="defaultallports" id="defaultallports">���٤ƤΥݡ��Ȥ��Ф���
442
<code>_default_</code> �С������ۥ���</a></h3>
444
<p>̤����� IP ���ɥ쥹�ȥݡ��ȡ�<em>�Ĥޤ�</em>¾�ΥС������ۥ��Ȥ�
445
�Ȥ��Ƥ��ʤ����ɥ쥹�ȥݡ��Ȥ��Ȥ߹�碌���ؤ�<em>���٤Ƥ�</em>�ꥯ�����Ȥ�
448
<div class="example"><h3>����������</h3><p><code>
451
<VirtualHost _default_:*><br />
452
<span class="indent">
453
DocumentRoot /www/default<br />
458
<p>���Τ褦�˥磻��ɥ����ɤΥݡ��Ȥǥǥե���ȤΥС������ۥ��Ȥ�
459
���ꤹ��ȡ��祵���Ф˥ꥯ�����Ȥ��Ԥ��Τ��ɤ��ޤ���</p>
461
<p>�ǥե���ȤΥС������ۥ��Ȥ�̾���١����ΥС������ۥ��Ȥ�
462
�Ȥ��Ƥ��륢�ɥ쥹�ȥݡ��Ȥ��Ȥ�����줿�ꥯ�����Ȥ����Ȥ�
463
����ޤ��ꥯ�����Ȥ������� <code>Host:</code> �إå��䤽��
464
�إå����ʤ��ä��ꤹ����ϴ���̾���١����С������ۥ��� (����
465
���ɥ쥹�ȥݡ��Ȥ�����ե�������Ǻǽ�ΥС������ۥ���) �ˤ��
468
<p>�ɤ�ʥꥯ�����ȤǤ� <code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code>
469
�� <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> ��Ȥä�
470
ñ��ξ���ڡ��� (�䥹����ץ�) �˽����뤳�Ȥ��Ǥ��ޤ���</p>
473
<h3><a name="defaultdifferentports" id="defaultdifferentports">�㤦�ݡ��ȤΤ����
474
<code>_default_</code> �С������ۥ���</a></h3>
476
<p>��Ĥ������Ȥۤ�Ʊ���Ǥ����������Ф�ʣ���Υݡ��Ȥ� listen ���Ƥ��ꡢ
477
80 �֥ݡ��Ȥ��Ф�����Ĥ�� <code>_default_</code> �С������ۥ��Ȥ�
480
<div class="example"><h3>����������</h3><p><code>
483
<VirtualHost _default_:80><br />
484
<span class="indent">
485
DocumentRoot /www/default80<br />
488
</VirtualHost><br />
490
<VirtualHost _default_:*><br />
491
<span class="indent">
492
DocumentRoot /www/default<br />
498
<p>80 �֥ݡ��ȤΥǥե���ȥС������ۥ��� (�磻��ɥ����ɥݡ��Ȥ�
499
�ǥե���ȥС������ۥ��Ȥ������˽�Ƥ��ʤ����<em>�ʤ�ޤ���</em>) ��
500
̤����� IP ���ɥ쥹������줿���٤ƤΥꥯ�����Ȥ��ޤ���
501
�祵���Фϥꥯ�����Ȥ��ޤ���</p>
504
<h3><a name="defaultoneport" id="defaultoneport">��ĤΥݡ��Ȥ��Ф��Ƥ�����
505
<code>_default_</code> �С������ۥ���</a></h3>
507
<p>80 �֥ݡ��Ȥˤϥǥե���ȤΥС������ۥ��Ȥ�ɬ�פǡ�¾��
508
�С������ۥ��Ȥϥǥե���Ȥ�ɬ�פʤ����Ǥ���</p>
510
<div class="example"><h3>����������</h3><p><code>
513
<VirtualHost _default_:80><br />
514
DocumentRoot /www/default<br />
519
<p>80 �֥ݡ��ȤؤΥ��ɥ쥹̤����Υꥯ�����Ȥϥǥե���ȤΥС������
520
�ۥ��Ȥ��������ޤ���¾��̤����Υ��ɥ쥹�ȥݡ��ȤؤΥꥯ�����Ȥ�
521
�祵���Ф��������ޤ���</p>
524
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
525
<div class="section">
526
<h2><a name="migrate" id="migrate">̾���١����ΥС������ۥ��Ȥ��� IP �١�����
527
�С������ۥ��Ȥ˰ܹԤ���</a></h2>
529
<p>�ۥ���̾��̾�� <code>www.example.org</code> �ΥС������ۥ���
530
(<a href="#name">̾���١���</a>����� 2 ���ܤ�����) �����Ѥ� IP ���ɥ쥹��
531
�����Ȥ��ޤ���̾���١����ΥС������ۥ��ȤθŤ� IP ���ɥ쥹��
532
����å��夷�Ƥ���͡��ॵ���Ф�ץ������Τ���˰ܹԴ������ξ����
533
�С������ۥ��Ȥ��������Ȥ��ޤ���</p>
535
<p>���ϴ�ñ�Ǥ���ñ�˿����� IP ���ɥ쥹 (<code>172.20.30.50</code>)
536
�� <code>VirtualHost</code> �ǥ��쥯�ƥ��֤��ɲä��뤳�Ȥ�
539
<div class="example"><h3>����������</h3><p><code>
543
ServerName www.example.com<br />
544
DocumentRoot /www/example1<br />
546
NameVirtualHost 172.20.30.40<br />
548
<VirtualHost 172.20.30.40 172.20.30.50><br />
549
<span class="indent">
550
DocumentRoot /www/example2<br />
551
ServerName www.example.org<br />
554
</VirtualHost><br />
556
<VirtualHost 172.20.30.40><br />
557
<span class="indent">
558
DocumentRoot /www/example3<br />
559
ServerName www.example.net<br />
560
ServerAlias *.example.net<br />
566
<p>���ΥС������ۥ��ȤϿ��������ɥ쥹 (IP �١����ΥС������ۥ��ȤȤ���)
567
�ȸŤ����ɥ쥹(̾���١����ΥС������ۥ��ȤȤ���) ��ξ������
570
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
571
<div class="section">
572
<h2><a name="serverpath" id="serverpath"><code>ServerPath</code> �ǥ��쥯�ƥ��֤�
575
<p>̾���١����ΥС������ۥ��Ȥ���Ĥ��륵���Ф�����Ȥ��ޤ���
576
�������С������ۥ��Ȥ����뤿��ˤϥ��饤����Ȥ�������
577
<code>Host:</code> �إå�������ʤ���Фʤ�ޤ���
578
�Ť� HTTP/1.0 �Ϥ��Τ褦�ʥإå�������ʤ��Τǡ�Apache �ϥ��饤����Ȥ�
579
�ɤΥС������ۥ��Ȥ�տޤ����Τ����äѤ�狼��ޤ���
580
(�ʤΤǡ���С������ۥ��Ȥǥꥯ�����Ȥ��ޤ�)��
581
��ǽ�ʸ¤�β��̸ߴ��������뤿�ᡢ̾���١����ΥС������ۥ��Ȥ�
582
URL ��Ƭ���ؤΥ�ν줿�ڡ������֤���
583
��С������ۥ��Ȥ���������ޤ���</p>
585
<div class="example"><h3>����������</h3><p><code>
588
NameVirtualHost 172.20.30.40<br />
590
<VirtualHost 172.20.30.40><br />
591
<span class="indent">
592
# primary vhost<br />
593
DocumentRoot /www/subdomain<br />
594
RewriteEngine On<br />
595
RewriteRule ^/.* /www/subdomain/index.html<br />
598
</VirtualHost><br />
600
<VirtualHost 172.20.30.40><br />
601
DocumentRoot /www/subdomain/sub1<br />
602
<span class="indent">
603
ServerName www.sub1.domain.tld<br />
604
ServerPath /sub1/<br />
605
RewriteEngine On<br />
606
RewriteRule ^(/sub1/.*) /www/subdomain$1<br />
609
</VirtualHost><br />
611
<VirtualHost 172.20.30.40><br />
612
<span class="indent">
613
DocumentRoot /www/subdomain/sub2<br />
614
ServerName www.sub2.domain.tld<br />
615
ServerPath /sub2/<br />
616
RewriteEngine On<br />
617
RewriteRule ^(/sub2/.*) /www/subdomain$1<br />
623
<p><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> �ǥ��쥯�ƥ��֤������
624
��ꡢURL <code>http://www.sub1.domain.tld/sub1/</code> ��
625
<em>���</em> sub1-vhost �ˤ�갷���ޤ���URL
626
<code>http://www.sub1.domain.tld/</code> �ؤΥꥯ�����Ȥ�
627
���饤����Ȥ������� <code>Host:</code> �إå������ä��Ȥ��ˤΤ�
628
sub1-vhost ���������ޤ���<code>Host:</code> �إå����ʤ����
629
���饤����Ȥϼ�ۥ��Ȥξ���ڡ��������ޤ���</p>
631
<p>��Ĵ�̯��ư����������뤳�ȤϳФ��Ƥ����Ƥ���������
632
<code>http://www.sub2.domain.tld/sub1/</code> �ؤΥꥯ�����Ȥ�
633
<code>Host:</code> �إå����ʤ���� sub1-vhost �ˤ�갷���ޤ���</p>
635
<p>������ <code>Host:</code> �إå������ä����饤����ȤϤɤ����
636
URL��<em>�Ĥޤ�</em>��Ƭ������������̵������Ȥ���褦��
637
<code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> �ǥ��쥯�ƥ��֤�
640
<div class="bottomlang">
641
<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> |
642
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Fran���ais"> fr </a> |
643
<a href="../ja/vhosts/examples.html" title="Japanese"> ja </a> |
644
<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
645
</div><div id="footer">
646
<p class="apache">Copyright 2006 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>
647
<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>
b'\\ No newline at end of file'