~ubuntu-branches/ubuntu/karmic/apache2/karmic-security

« back to all changes in this revision

Viewing changes to docs/manual/vhosts/examples.html.ja.euc-jp

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2008-10-01 11:50:18 UTC
  • mfrom: (34 intrepid)
  • mto: (14.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: james.westby@ubuntu.com-20081001115018-1022gw429ce4pqyp
Tags: 2.2.9-10
Regression fix from upstream svn for mod_proxy_http:
Don't trigger a retry by the client if a failure to read the response line
was the result of a timeout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
7
 
      -->
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="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
18
 
<div id="path">
19
 
<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/">�ɥ�����ơ������</a> &gt; <a href="../">�С������ 2.2</a> &gt; <a href="./">�С������ۥ���</a></div><div id="page-content"><div id="preamble"><h1>�С������ۥ��Ȥ���</h1>
20
 
<div class="toplang">
21
 
<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
22
 
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Fran���ais">&nbsp;fr&nbsp;</a> |
23
 
<a href="../ja/vhosts/examples.html" title="Japanese">&nbsp;ja&nbsp;</a> |
24
 
<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
25
 
</div>
26
 
 
27
 
 
28
 
    <p>����ʸ��ϡ��С������ۥ��Ȥ�����κݤ�
29
 
    �褯���������������ΤǤ������ꤷ�Ƥ����оݤ� <a href="name-based.html">̾���١���</a> �� <a href="ip-based.html">IP �١���</a> �ΥС������ۥ��Ȥ�Ȥä�
30
 
    ��ĤΥ����Ф�ʣ���Υ����֥����Ȥ��Ѥ��Ƥ�������Ǥ���
31
 
    </p>
32
 
 
33
 
</div>
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 ���ɥ쥹�Τ���ۥ��Ȥ�̾���١�����
37
 
    �ۥ��ƥ��󥰤�Ԥʤ�</a></li>
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 �١����κ����ä�
43
 
    �С������ۥ���</a></li>
44
 
<li><img alt="" src="../images/down.gif" /> <a href="#mixed">̾���١����� IP �١����򺮤���
45
 
    �С������ۥ���</a></li>
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> �ΥС������ۥ��Ȥ�
49
 
    �Ȥ�</a></li>
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> �ǥ��쥯�ƥ��֤�
53
 
    �Ȥ�</a></li>
54
 
</ul></div>
55
 
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
56
 
<div class="section">
57
 
<h2><a name="purename" id="purename">��Ĥ� IP ���ɥ쥹�Ǥ����Ĥ���̾���١�����
58
 
    �����֥����Ȥ�¹Ԥ���</a></h2>
59
 
 
60
 
    <p>�����Ф� IP ���ɥ쥹���ij�����Ƥ��Ƥ��ơ�DNS �ǥޥ����
61
 
    ʣ����̾�� (CNAME) �����ꤵ��Ƥ��ޤ������Υޥ����
62
 
    <code>www.example.com</code> �� <code>www.example.org</code>
63
 
    �Τ���Υ����֥����Ф�¹Ԥ��������Ȥ��ޤ���</p>
64
 
 
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>
74
 
    </div>
75
 
 
76
 
    <div class="example"><h3>����������</h3><p><code>
77
 
    
78
 
 
79
 
    # Ensure that Apache listens on port 80<br />
80
 
    Listen 80<br />
81
 
    <br />
82
 
    # Listen for virtual host requests on all IP addresses<br />
83
 
    NameVirtualHost *:80<br />
84
 
    <br />
85
 
    &lt;VirtualHost *:80&gt;<br />
86
 
    <span class="indent">
87
 
      DocumentRoot /www/example1<br />
88
 
      ServerName www.example.com<br />
89
 
      <br />
90
 
      # Other directives here<br />
91
 
      <br />
92
 
    </span>
93
 
    &lt;/VirtualHost&gt;<br />
94
 
    <br />
95
 
    &lt;VirtualHost *:80&gt;<br />
96
 
    <span class="indent">
97
 
      DocumentRoot /www/example2<br />
98
 
      ServerName www.example.org<br />
99
 
      <br />
100
 
      # Other directives here<br />
101
 
      <br />
102
 
    </span>
103
 
    &lt;/VirtualHost&gt;
104
 
    </code></p></div>
105
 
 
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>
112
 
 
113
 
    <div class="note"><h3>��</h3>
114
 
 
115
 
          <p><code>*</code> �򥷥��ƥ�μºݤ� IP ���ɥ쥹���֤�������
116
 
          ���Ȥ�Ǥ��ޤ������ξ��� <code>VirtualHost</code> �ΰ�����
117
 
          <code>NameVirtualHost</code> �ΰ�����Ʊ����<em>���ʤ���Фʤ�ޤ���
118
 
          </em>:</p>
119
 
 
120
 
            <div class="example"><p><code>
121
 
            NameVirtualHost 172.20.30.40<br />
122
 
                                                <br />
123
 
            &lt;VirtualHost 172.20.30.40&gt;<br />
124
 
                        # etc ...
125
 
            </code></p></div>
126
 
 
127
 
          <p>��������IP ���ɥ쥹��ͽ¬�Բ�ǽ�ʥ����ƥ�
128
 
          �����㤨�Хץ��Х�������ưŪ�� IP ���ɥ쥹��������Ʋ��餫��
129
 
          �����ʥߥå� DNS ��ȤäƤ�����ʤɡ����ˤ����Ƥϡ�<code>*</code> 
130
 
          ����Ϥ���������Ǥ���<code>*</code> �Ϥ��٤Ƥ� IP ���ɥ쥹��
131
 
          �ޥå����ޤ��Τǡ���������ˤ��Ƥ����� IP ���ɥ쥹���ѹ�����Ƥ�
132
 
          �����ѹ�������ư��ޤ���</p>
133
 
    </div>
134
 
 
135
 
    <p>̾���١����ΥС������ۥ��ƥ��󥰤ǤϤۤܤ��٤Ƥξ����ǡ�
136
 
    �嵭������Ǵ�˾������ˤʤäƤ��뤳�ȤǤ��礦��
137
 
    �ºݤ������꤬ư��ʤ��Τϡ�IP ���ɥ쥹��ݡ��Ȥΰ㤤�ˤ�ä�
138
 
    �㤦����ƥ�Ĥ�����Ȥ������Ǥ���</p>
139
 
 
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>
144
 
 
145
 
    <div class="note">
146
 
    <h3>��</h3><p>��������������Ƥ�����ˡ�� IP ���ɥ쥹��
147
 
    ���Ĥ��äƤ�Ʊ�ͤˤǤ��ޤ���</p>
148
 
    </div>
149
 
 
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>
155
 
 
156
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
157
 
    
158
 
 
159
 
    Listen 80<br />
160
 
                <br />
161
 
    # This is the "main" server running on 172.20.30.40<br />
162
 
    ServerName server.domain.com<br />
163
 
    DocumentRoot /www/mainserver<br />
164
 
                <br />
165
 
    # This is the other address<br />
166
 
    NameVirtualHost 172.20.30.50<br />
167
 
                <br />
168
 
    &lt;VirtualHost 172.20.30.50&gt;<br />
169
 
    <span class="indent">
170
 
        DocumentRoot /www/example1<br />
171
 
        ServerName www.example.com<br />
172
 
                        <br />
173
 
        # Other directives here ...<br />
174
 
                                <br />
175
 
    </span>
176
 
    &lt;/VirtualHost&gt;<br />
177
 
                <br />
178
 
    &lt;VirtualHost 172.20.30.50&gt;<br />
179
 
    <span class="indent">
180
 
        DocumentRoot /www/example2<br />
181
 
        ServerName www.example.org<br />
182
 
                                <br />
183
 
        # Other directives here ...<br />
184
 
                                <br />
185
 
    </span>
186
 
    &lt;/VirtualHost&gt;
187
 
    </code></p></div>
188
 
 
189
 
    <p><code>172.20.30.50</code> �ʳ��Υ��ɥ쥹�ؤΥꥯ�����Ȥϼ祵����
190
 
    �������ޤ���<code>172.20.30.50</code> �ؤΡ�̤�ΤΥۥ���̾�ޤ���
191
 
    <code>Host:</code> �إå��ʤ��Υꥯ�����Ȥ� <code>www.example.com</code>
192
 
    �������ޤ���</p>
193
 
 
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>
198
 
 
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>) 
205
 
    �Ȥ��Ʋ�褵��ޤ���</p>
206
 
 
207
 
    <p><code>VirtualHost</code> ��Ĥ����ǥ����Ф������Υꥯ�����Ȥ�
208
 
    �����Υꥯ�����Ȥ�ξ����Ʊ������ƥ�ĤDZ�������褦�ˤǤ��ޤ���</p>
209
 
 
210
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
211
 
    
212
 
 
213
 
    NameVirtualHost 192.168.1.1<br />
214
 
    NameVirtualHost 172.20.30.40<br />
215
 
                <br />
216
 
    &lt;VirtualHost 192.168.1.1 172.20.30.40&gt;<br />
217
 
    <span class="indent">
218
 
        DocumentRoot /www/server1<br />
219
 
        ServerName server.example.com<br />
220
 
        ServerAlias server<br />
221
 
    </span>
222
 
    &lt;/VirtualHost&gt;
223
 
    </code></p></div>
224
 
 
225
 
    <p>����Ǥɤ���Υͥåȥ������Υꥯ�����Ȥ�Ʊ�� <code>VirtualHost</code>
226
 
    �ǰ�����褦�ˤʤ�ޤ���</p>
227
 
 
228
 
    <div class="note"><h3>��:</h3><p>�����ͥåȥ���Ǥϴ����ʥۥ���̾��
229
 
          <code>server.example.com</code> ������ˡ�ñ�� <code>server</code>
230
 
          ��Ȥ����Ȥ��Ǥ��ޤ���</p>
231
 
 
232
 
          <p>�����Ǥϡ�IP ���ɥ쥹�Υꥹ�Ȥ򡢤��٤ƤΥ��ɥ쥹��
233
 
           Ʊ������ƥ�ĤDZ������� <code>*</code> ���֤��������ޤ���</p>
234
 
    </div>
235
 
 
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>
239
 
 
240
 
    <p>Ʊ�� IP ��ʣ���Υɥᥤ�󤬤��ꡢ�����ʣ���Υݡ��Ȥ�Ȥä�
241
 
    �ꥯ�����Ȥ򰷤������Ȥ�������ޤ���"NameVirtualHost" ���������
242
 
    �ݡ��Ȥ�������뤳�Ȥǡ������ư������ޤ���
243
 
    NameVirtualHost name:port ̵���� Listen �ǥ��쥯�ƥ��֤�
244
 
    &lt;VirtualHost name:port&gt; ��Ȥ����Ȥ��Ƥ⡢���������ư��ޤ���</p>
245
 
 
246
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
247
 
    
248
 
 
249
 
    Listen 80<br />
250
 
    Listen 8080<br />
251
 
                <br />
252
 
    NameVirtualHost 172.20.30.40:80<br />
253
 
    NameVirtualHost 172.20.30.40:8080<br />
254
 
                <br />
255
 
    &lt;VirtualHost 172.20.30.40:80&gt;<br />
256
 
    <span class="indent">
257
 
        ServerName www.example.com<br />
258
 
        DocumentRoot /www/domain-80<br />
259
 
    </span>
260
 
    &lt;/VirtualHost&gt;<br />
261
 
                <br />
262
 
    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
263
 
    <span class="indent">
264
 
        ServerName www.example.com<br />
265
 
        DocumentRoot /www/domain-8080<br />
266
 
    </span>
267
 
    &lt;/VirtualHost&gt;<br />
268
 
                <br />
269
 
    &lt;VirtualHost 172.20.30.40:80&gt;<br />
270
 
    <span class="indent">
271
 
        ServerName www.example.org<br />
272
 
        DocumentRoot /www/otherdomain-80<br />
273
 
    </span>
274
 
    &lt;/VirtualHost&gt;<br />
275
 
                <br />
276
 
    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
277
 
    <span class="indent">
278
 
        ServerName www.example.org<br />
279
 
        DocumentRoot /www/otherdomain-8080<br />
280
 
    </span>
281
 
    &lt;/VirtualHost&gt;
282
 
    </code></p></div>
283
 
 
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>
287
 
 
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>
291
 
 
292
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
293
 
    
294
 
 
295
 
    Listen 80<br />
296
 
                <br />
297
 
    &lt;VirtualHost 172.20.30.40&gt;<br />
298
 
    <span class="indent">
299
 
        DocumentRoot /www/example1<br />
300
 
        ServerName www.example.com<br />
301
 
    </span>
302
 
    &lt;/VirtualHost&gt;<br />
303
 
                <br />
304
 
    &lt;VirtualHost 172.20.30.50&gt;<br />
305
 
    <span class="indent">
306
 
        DocumentRoot /www/example2<br />
307
 
        ServerName www.example.org<br />
308
 
    </span>
309
 
    &lt;/VirtualHost&gt;
310
 
    </code></p></div>
311
 
 
312
 
    <p><code>&lt;VirtualHost&gt;</code> �ǥ��쥯�ƥ��֤Τɤ�Ǥ�
313
 
    ���ꤵ��Ƥ��ʤ����ɥ쥹 (�㤨�� <code>localhost</code>) �ϡ�
314
 
    �祵���Ф�����Ф����˹Ԥ��ޤ���</p>
315
 
 
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>
320
 
 
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>
325
 
 
326
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
327
 
    
328
 
 
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 />
333
 
                <br />
334
 
    &lt;VirtualHost 172.20.30.40:80&gt;<br />
335
 
    <span class="indent">
336
 
        DocumentRoot /www/example1-80<br />
337
 
        ServerName www.example.com<br />
338
 
    </span>
339
 
    &lt;/VirtualHost&gt;<br />
340
 
                <br />
341
 
    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
342
 
    <span class="indent">
343
 
        DocumentRoot /www/example1-8080<br />
344
 
        ServerName www.example.com<br />
345
 
                </span>
346
 
    &lt;/VirtualHost&gt;<br />
347
 
                <br />
348
 
    &lt;VirtualHost 172.20.30.50:80&gt;<br />
349
 
    <span class="indent">
350
 
        DocumentRoot /www/example2-80<br />
351
 
        ServerName www.example.org<br />
352
 
    </span>
353
 
    &lt;/VirtualHost&gt;<br />
354
 
                <br />
355
 
    &lt;VirtualHost 172.20.30.50:8080&gt;<br />
356
 
    <span class="indent">
357
 
        DocumentRoot /www/example2-8080<br />
358
 
        ServerName www.example.org<br />
359
 
    </span>
360
 
    &lt;/VirtualHost&gt;
361
 
    </code></p></div>
362
 
 
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>
367
 
 
368
 
    <p>�����Ĥ��Υޥ���Ǥ�̾���١����Ρ�����¾�Ǥ� IP �١����ΥС������
369
 
    �ۥ��Ȥ򤷤ޤ���</p>
370
 
 
371
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
372
 
    
373
 
 
374
 
    Listen 80<br />
375
 
                <br />
376
 
    NameVirtualHost 172.20.30.40<br />
377
 
                <br />
378
 
    &lt;VirtualHost 172.20.30.40&gt;<br />
379
 
    <span class="indent">
380
 
        DocumentRoot /www/example1<br />
381
 
        ServerName www.example.com<br />
382
 
    </span>
383
 
    &lt;/VirtualHost&gt;<br />
384
 
                <br />
385
 
    &lt;VirtualHost 172.20.30.40&gt;<br />
386
 
    <span class="indent">
387
 
        DocumentRoot /www/example2<br />
388
 
        ServerName www.example.org<br />
389
 
    </span>
390
 
    &lt;/VirtualHost&gt;<br />
391
 
                <br />
392
 
    &lt;VirtualHost 172.20.30.40&gt;<br />
393
 
    <span class="indent">
394
 
        DocumentRoot /www/example3<br />
395
 
        ServerName www.example3.net<br />
396
 
    </span>
397
 
    &lt;/VirtualHost&gt;<br />
398
 
                <br />
399
 
    # IP-based<br />
400
 
    &lt;VirtualHost 172.20.30.50&gt;<br />
401
 
    <span class="indent">
402
 
        DocumentRoot /www/example4<br />
403
 
        ServerName www.example4.edu<br />
404
 
    </span>
405
 
    &lt;/VirtualHost&gt;<br />
406
 
                <br />
407
 
    &lt;VirtualHost 172.20.30.60&gt;<br />
408
 
    <span class="indent">
409
 
        DocumentRoot /www/example5<br />
410
 
        ServerName www.example5.gov<br />
411
 
    </span>
412
 
    &lt;/VirtualHost&gt;
413
 
    </code></p></div>
414
 
 
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>
419
 
 
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
 
    �ǥ��쥯�ƥ��֤�Ȥäơ���˾�Υۥ���̾���Ϥ���褦�ˤʤ�ޤ���
425
 
    </p>
426
 
 
427
 
    <div class="example"><p><code>
428
 
    &lt;VirtualHost *:*&gt;<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 />
433
 
    &lt;/VirtualHost&gt;
434
 
    </code></p></div>
435
 
 
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> �ΥС������ۥ��Ȥ�
439
 
    �Ȥ�</a></h2> 
440
 
 
441
 
    <h3><a name="defaultallports" id="defaultallports">���٤ƤΥݡ��Ȥ��Ф���
442
 
    <code>_default_</code> �С������ۥ���</a></h3>
443
 
 
444
 
    <p>̤����� IP ���ɥ쥹�ȥݡ��ȡ�<em>�Ĥޤ�</em>¾�ΥС������ۥ��Ȥ�
445
 
    �Ȥ��Ƥ��ʤ����ɥ쥹�ȥݡ��Ȥ��Ȥ߹�碌���ؤ�<em>���٤Ƥ�</em>�ꥯ�����Ȥ�
446
 
    �������ޤ���</p>
447
 
 
448
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
449
 
    
450
 
 
451
 
    &lt;VirtualHost _default_:*&gt;<br />
452
 
    <span class="indent">
453
 
        DocumentRoot /www/default<br />
454
 
    </span>
455
 
    &lt;/VirtualHost&gt;
456
 
    </code></p></div>
457
 
 
458
 
    <p>���Τ褦�˥磻��ɥ����ɤΥݡ��Ȥǥǥե���ȤΥС������ۥ��Ȥ�
459
 
    ���ꤹ��ȡ��祵���Ф˥ꥯ�����Ȥ��Ԥ��Τ��ɤ��ޤ���</p>
460
 
 
461
 
    <p>�ǥե���ȤΥС������ۥ��Ȥ�̾���١����ΥС������ۥ��Ȥ�
462
 
    �Ȥ��Ƥ��륢�ɥ쥹�ȥݡ��Ȥ��Ȥ�����줿�ꥯ�����Ȥ򰷤����Ȥ�
463
 
    ����ޤ��󡣥ꥯ�����Ȥ������� <code>Host:</code> �إå��䤽��
464
 
    �إå����ʤ��ä��ꤹ����ϴ���̾���١����С������ۥ��� (����
465
 
    ���ɥ쥹�ȥݡ��Ȥ�����ե�������Ǻǽ�ΥС������ۥ���) �ˤ��
466
 
    �����ޤ���</p>
467
 
 
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>
471
 
    
472
 
 
473
 
    <h3><a name="defaultdifferentports" id="defaultdifferentports">�㤦�ݡ��ȤΤ����
474
 
    <code>_default_</code> �С������ۥ���</a></h3>
475
 
 
476
 
    <p>��Ĥ������Ȥۤ�Ʊ���Ǥ����������Ф�ʣ���Υݡ��Ȥ� listen ���Ƥ��ꡢ
477
 
    80 �֥ݡ��Ȥ��Ф�����Ĥ�� <code>_default_</code> �С������ۥ��Ȥ�
478
 
    ���ꤷ�������Ǥ���</p>
479
 
 
480
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
481
 
    
482
 
 
483
 
    &lt;VirtualHost _default_:80&gt;<br />
484
 
    <span class="indent">
485
 
        DocumentRoot /www/default80<br />
486
 
        # ...<br />
487
 
    </span>
488
 
    &lt;/VirtualHost&gt;<br />
489
 
                <br />
490
 
    &lt;VirtualHost _default_:*&gt;<br />
491
 
    <span class="indent">
492
 
        DocumentRoot /www/default<br />
493
 
        # ...<br />
494
 
    </span>
495
 
    &lt;/VirtualHost&gt;
496
 
    </code></p></div>
497
 
 
498
 
    <p>80 �֥ݡ��ȤΥǥե���ȥС������ۥ��� (�磻��ɥ����ɥݡ��Ȥ�
499
 
    �ǥե���ȥС������ۥ��Ȥ������˽񤫤�Ƥ��ʤ����<em>�ʤ�ޤ���</em>) ��
500
 
    ̤����� IP ���ɥ쥹������줿���٤ƤΥꥯ�����Ȥ򰷤��ޤ���
501
 
    �祵���Фϥꥯ�����Ȥ򰷤��ޤ���</p>
502
 
    
503
 
 
504
 
    <h3><a name="defaultoneport" id="defaultoneport">��ĤΥݡ��Ȥ��Ф��Ƥ�����
505
 
    <code>_default_</code> �С������ۥ���</a></h3>
506
 
 
507
 
    <p>80 �֥ݡ��Ȥˤϥǥե���ȤΥС������ۥ��Ȥ�ɬ�פǡ�¾��
508
 
    �С������ۥ��Ȥϥǥե���Ȥ�ɬ�פʤ����Ǥ���</p>
509
 
 
510
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
511
 
    
512
 
 
513
 
    &lt;VirtualHost _default_:80&gt;<br />
514
 
    DocumentRoot /www/default<br />
515
 
    ...<br />
516
 
    &lt;/VirtualHost&gt;
517
 
    </code></p></div>
518
 
 
519
 
    <p>80 �֥ݡ��ȤؤΥ��ɥ쥹̤����Υꥯ�����Ȥϥǥե���ȤΥС������
520
 
    �ۥ��Ȥ��������ޤ���¾��̤����Υ��ɥ쥹�ȥݡ��ȤؤΥꥯ�����Ȥ�
521
 
    �祵���Ф��������ޤ���</p>
522
 
    
523
 
 
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>
528
 
 
529
 
    <p>�ۥ���̾��̾�� <code>www.example.org</code> �ΥС������ۥ���
530
 
    (<a href="#name">̾���١���</a>����� 2 ���ܤ�����) �����Ѥ� IP ���ɥ쥹��
531
 
    �����Ȥ��ޤ���̾���١����ΥС������ۥ��ȤθŤ� IP ���ɥ쥹��
532
 
    ����å��夷�Ƥ���͡��ॵ���Ф�ץ������Τ���˰ܹԴ������ξ����
533
 
    �С������ۥ��Ȥ��󶡤������Ȥ��ޤ���</p>
534
 
 
535
 
    <p>���ϴ�ñ�Ǥ���ñ�˿����� IP ���ɥ쥹 (<code>172.20.30.50</code>)
536
 
    �� <code>VirtualHost</code> �ǥ��쥯�ƥ��֤��ɲä��뤳�Ȥ�
537
 
    �Ǥ��ޤ���</p>
538
 
  
539
 
    <div class="example"><h3>����������</h3><p><code>
540
 
    
541
 
 
542
 
    Listen 80<br />
543
 
    ServerName www.example.com<br />
544
 
    DocumentRoot /www/example1<br />
545
 
                <br />
546
 
    NameVirtualHost 172.20.30.40<br />
547
 
                <br />
548
 
    &lt;VirtualHost 172.20.30.40 172.20.30.50&gt;<br />
549
 
    <span class="indent">
550
 
        DocumentRoot /www/example2<br />
551
 
        ServerName www.example.org<br />
552
 
        # ...<br />
553
 
    </span>
554
 
    &lt;/VirtualHost&gt;<br />
555
 
                <br />
556
 
    &lt;VirtualHost 172.20.30.40&gt;<br />
557
 
    <span class="indent">
558
 
        DocumentRoot /www/example3<br />
559
 
        ServerName www.example.net<br />
560
 
        ServerAlias *.example.net<br />
561
 
        # ...<br />
562
 
    </span>
563
 
    &lt;/VirtualHost&gt;
564
 
    </code></p></div>
565
 
 
566
 
    <p>���ΥС������ۥ��ȤϿ��������ɥ쥹 (IP �١����ΥС������ۥ��ȤȤ���)
567
 
    �ȸŤ����ɥ쥹(̾���١����ΥС������ۥ��ȤȤ���) ��ξ������
568
 
    ���������Ǥ��ޤ���</p>
569
 
 
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> �ǥ��쥯�ƥ��֤�
573
 
    �Ȥ�</a></h2>
574
 
 
575
 
    <p>̾���١����ΥС������ۥ��Ȥ���Ĥ��륵���Ф�����Ȥ��ޤ���
576
 
    �������С������ۥ��Ȥ����뤿��ˤϥ��饤����Ȥ�������
577
 
    <code>Host:</code> �إå�������ʤ���Фʤ�ޤ���
578
 
    �Ť� HTTP/1.0 �Ϥ��Τ褦�ʥإå�������ʤ��Τǡ�Apache �ϥ��饤����Ȥ�
579
 
    �ɤΥС������ۥ��Ȥ�տޤ����Τ����äѤ�狼��ޤ���
580
 
    (�ʤΤǡ���С������ۥ��Ȥǥꥯ�����Ȥ򰷤��ޤ�)��
581
 
    ��ǽ�ʸ¤�β��̸ߴ��������뤿�ᡢ̾���١����ΥС������ۥ��Ȥ�
582
 
    URL ��Ƭ���ؤΥ�󥯤ν񤫤줿�ڡ������֤���
583
 
    ��С������ۥ��Ȥ���������ޤ���</p>
584
 
 
585
 
    <div class="example"><h3>�����Ф�����</h3><p><code>
586
 
    
587
 
 
588
 
    NameVirtualHost 172.20.30.40<br />
589
 
                <br />
590
 
    &lt;VirtualHost 172.20.30.40&gt;<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 />
596
 
        # ...<br />
597
 
    </span>
598
 
    &lt;/VirtualHost&gt;<br />
599
 
                <br />
600
 
    &lt;VirtualHost 172.20.30.40&gt;<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 />
607
 
        # ...<br />
608
 
    </span>
609
 
    &lt;/VirtualHost&gt;<br />
610
 
                <br />
611
 
    &lt;VirtualHost 172.20.30.40&gt;<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 />
618
 
        # ...<br />
619
 
    </span>
620
 
    &lt;/VirtualHost&gt;
621
 
    </code></p></div>
622
 
 
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>
630
 
 
631
 
    <p>��Ĵ�̯��ư��򤹤��������뤳�ȤϳФ��Ƥ����Ƥ���������
632
 
    <code>http://www.sub2.domain.tld/sub1/</code> �ؤΥꥯ�����Ȥ�
633
 
    <code>Host:</code> �إå����ʤ���� sub1-vhost �ˤ�갷���ޤ���</p>
634
 
 
635
 
    <p>������ <code>Host:</code> �إå������ä����饤����ȤϤɤ����
636
 
    URL��<em>�Ĥޤ�</em>��Ƭ������������̵������Ȥ���褦��
637
 
    <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> �ǥ��쥯�ƥ��֤�
638
 
    �Ȥ��Ƥ��ޤ���</p>
639
 
  </div></div>
640
 
<div class="bottomlang">
641
 
<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
642
 
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Fran���ais">&nbsp;fr&nbsp;</a> |
643
 
<a href="../ja/vhosts/examples.html" title="Japanese">&nbsp;ja&nbsp;</a> |
644
 
<a href="../ko/vhosts/examples.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</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>
648
 
</body></html>
 
 
b'\\ No newline at end of file'