File: examples.html.ja.euc-jp

package info (click to toggle)
apache2 2.2.3-4%2Betch11
  • links: PTS
  • area: main
  • in suites: etch
  • size: 35,160 kB
  • ctags: 19,065
  • sloc: ansic: 206,618; sh: 18,457; perl: 1,649; makefile: 1,103; awk: 874; pascal: 490; python: 308; lex: 191; yacc: 100
file content (648 lines) | stat: -rw-r--r-- 25,942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
<?xml version="1.0" encoding="EUC-JP"?>
<!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="ja" xml:lang="ja"><head><!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>СۥȤ - Apache HTTP </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 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="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p>
<p class="apache">Apache HTTP  С 2.2</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
<div id="path">
<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>
<div class="toplang">
<p><span>Available Languages: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Franais">&nbsp;fr&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>


    <p>ʸϡСۥȤκݤ
    褯ΤǤꤷƤоݤ <a href="name-based.html">̾١</a>  <a href="ip-based.html">IP ١</a> ΥСۥȤȤä
    ĤΥФʣΥ֥ȤѤƤǤ
    </p>

</div>
<div id="quickview"><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="#proxy"><code>Virtual_host</code> 
    mod_proxy ʻѤ</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></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 ɥ쥹ijƤƤơDNS ǥޥ
    ʣ̾ (CNAME) ꤵƤޤΥޥ
    <code>www.example.com</code>  <code>www.example.org</code>
    ΤΥ֥Ф¹ԤȤޤ</p>

    <div class="note"><h3></h3><p>
          Apache ФǥСۥȤ򤷤ǡ
          Τʤ֤ˤΥۥ̾б DNS Υȥ꤬
          줿Ϥޤ󡣤ΥФ IP ɥ쥹˲褵
          褦 DNS ̾Ͽʤ<em>ʤޤ</em>
          Ǥʤï⤢ʤΥ֥Ȥ򸫤뤳ȤϤǤޤ
          ǤΥƥȤΤ <code>hosts</code> ե
          ȥɲä뤳ȤǤޤξϤ
          hosts ȥΤޥ󤫤餷ưޤ</p>
    </div>

    <div class="example"><h3></h3><p><code>
    

    # Ensure that Apache listens on port 80<br />
    Listen 80<br />
    <br />
    # Listen for virtual host requests on all IP addresses<br />
    NameVirtualHost *:80<br />
    <br />
    &lt;VirtualHost *:80&gt;<br />
    <span class="indent">
      DocumentRoot /www/example1<br />
      ServerName www.example.com<br />
      <br />
      # Other directives here<br />
      <br />
    </span>
    &lt;/VirtualHost&gt;<br />
    <br />
    &lt;VirtualHost *:80&gt;<br />
    <span class="indent">
      DocumentRoot /www/example2<br />
      ServerName www.example.org<br />
      <br />
      # Other directives here<br />
      <br />
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p>ꥹϤ٤ƤΥɥ쥹˥ޥåޤΤǡ祵Ф
    ꥯȤ򰷤ޤ<code>www.example.com</code> 
    ǽˤ뤿ᡢ̤ͥϰֹ⤯ʤꡢ<cite>default</cite> ⤷
    <cite>primary</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 />
            &lt;VirtualHost 172.20.30.40&gt;<br />
 		        # etc ...
            </code></p></div>

          <p>IP ɥ쥹ͽ¬Բǽʥƥ
          㤨ХץХưŪ IP ɥ쥹Ʋ餫
          ʥߥå DNS ȤäƤʤɡˤƤϡ<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 />
    # This is the "main" server running on 172.20.30.40<br />
    ServerName server.domain.com<br />
    DocumentRoot /www/mainserver<br />
		<br />
    # This is the other address<br />
    NameVirtualHost 172.20.30.50<br />
		<br />
    &lt;VirtualHost 172.20.30.50&gt;<br />
    <span class="indent">
        DocumentRoot /www/example1<br />
        ServerName www.example.com<br />
   			<br />
        # Other directives here ...<br />
				<br />
    </span>
    &lt;/VirtualHost&gt;<br />
		<br />
    &lt;VirtualHost 172.20.30.50&gt;<br />
    <span class="indent">
        DocumentRoot /www/example2<br />
        ServerName www.example.org<br />
				<br />
        # Other directives here ...<br />
				<br />
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p><code>172.20.30.50</code> ʳΥɥ쥹ؤΥꥯȤϼ祵
    ޤ<code>172.20.30.50</code> ؤΡ̤ΤΥۥ̾ޤ
    <code>Host:</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> ĤǥФΥꥯȤ
    ΥꥯȤξƱƥĤDZ褦ˤǤޤ</p>

    <div class="example"><h3>Ф</h3><p><code>
    

    NameVirtualHost 192.168.1.1<br />
    NameVirtualHost 172.20.30.40<br />
		<br />
    &lt;VirtualHost 192.168.1.1 172.20.30.40&gt;<br />
    <span class="indent">
        DocumentRoot /www/server1<br />
        ServerName server.example.com<br />
        ServerAlias server<br />
    </span>
    &lt;/VirtualHost&gt;
    </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 ɥ쥹ΥꥹȤ򡢤٤ƤΥɥ쥹
           ƱƥĤDZ <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 ̵ Listen ǥ쥯ƥ֤
    &lt;VirtualHost name:port&gt; ȤȤƤ⡢ưޤ</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 />
    &lt;VirtualHost 172.20.30.40:80&gt;<br />
    <span class="indent">
        ServerName www.example.com<br />
        DocumentRoot /www/domain-80<br />
    </span>
    &lt;/VirtualHost&gt;<br />
		<br />
    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
    <span class="indent">
        ServerName www.example.com<br />
        DocumentRoot /www/domain-8080<br />
    </span>
    &lt;/VirtualHost&gt;<br />
		<br />
    &lt;VirtualHost 172.20.30.40:80&gt;<br />
    <span class="indent">
        ServerName www.example.org<br />
        DocumentRoot /www/otherdomain-80<br />
    </span>
    &lt;/VirtualHost&gt;<br />
		<br />
    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
    <span class="indent">
        ServerName www.example.org<br />
        DocumentRoot /www/otherdomain-8080<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="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 />
    &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.50&gt;<br />
    <span class="indent">
        DocumentRoot /www/example2<br />
        ServerName www.example.org<br />
    </span>
    &lt;/VirtualHost&gt;
    </code></p></div>

    <p><code>&lt;VirtualHost&gt;</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>) äƤޤ
    ɤݡ 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 />
    &lt;VirtualHost 172.20.30.40:80&gt;<br />
    <span class="indent">
        DocumentRoot /www/example1-80<br />
        ServerName www.example.com<br />
    </span>
    &lt;/VirtualHost&gt;<br />
		<br />
    &lt;VirtualHost 172.20.30.40:8080&gt;<br />
    <span class="indent">
        DocumentRoot /www/example1-8080<br />
        ServerName www.example.com<br />
		</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="proxy" id="proxy"><code>Virtual_host</code> 
    mod_proxy ʻѤ</a></h2>

    <p>ϡե¦ΥСۥȤ¾Υޥإץޤ
    Ǥ <code>192.168.111.2</code> ΥޥǤϥСۥ̾
    Ʊ̾ꤵƤޤʣΥۥ̾Υޥ˥ץ
    ϡ<code class="directive"><a href="../mod/mod_proxy.html#proxypreservehost on">ProxyPreserveHost On</a></code>
    ǥ쥯ƥ֤Ȥäơ˾Υۥ̾Ϥ褦ˤʤޤ
    </p>

    <div class="example"><p><code>
    &lt;VirtualHost *:*&gt;<br />
        ProxyPreserveHost On<br />
        ProxyPass / http://192.168.111.2<br />
        ProxyPassReverse / http://192.168.111.2/<br />
        ServerName hostname.example.com<br />
    &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 ֥ݡȤΥǥեȥСۥ (磻ɥɥݡȤ
    ǥեȥСۥȤ˽񤫤Ƥʤ<em>ʤޤ</em>) 
    ̤ 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="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Franais">&nbsp;fr&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 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>
<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>