1
<?xml version="1.0" encoding="EUC-KR"?>
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="ko" xml:lang="ko"><head><!--
4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5
This file is generated from xml source: DO NOT EDIT
6
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8
<title>����ȣ��Ʈ �� - Apache HTTP Server</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 Server Version 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 Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">����ȣ��Ʈ</a></div><div id="page-content"><div id="preamble"><h1>����ȣ��Ʈ ��</h1>
21
<p><span>������ ���: </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" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
24
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a></p>
26
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
27
�ֱٿ� ����� ������ ���� ������ �����ϼ���.</div>
30
<p>�� ������ ���� ���ǵǴ� ����ȣ��Ʈ
31
������ ���� �Ϸ��� ��������. ��Ȳ�� <a href="name-based.html">�̸����</a>�̳� <a href="ip-based.html">IP���</a> ����ȣ��Ʈ�� ���� �� ��������
32
���� ������Ʈ�� �����Ϸ��� ����̴�. �� ���Ͻ� ���� �ڿ���
33
���� ������ ����Ͽ� ����Ʈ�� ��ϴ� ��츦 �ٷ� ������
37
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">IP �ּ� �Ѱ��� ���� �̸����
38
������Ʈ ��ϱ�.</a></li>
39
<li><img alt="" src="../images/down.gif" /> <a href="#twoips">���� IP �ּҿ��� �̸����
41
<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">(���ο� �ܺ� �ּҿ� ����)
42
�ٸ� IP �ּҷ� ���� ������ �����ϱ�.</a></li>
43
<li><img alt="" src="../images/down.gif" /> <a href="#port">���� ��Ʈ���� ���� �ٸ� ����Ʈ
45
<li><img alt="" src="../images/down.gif" /> <a href="#ip">IP��� ����ȣ��Ʈ</a></li>
46
<li><img alt="" src="../images/down.gif" /> <a href="#ipport">��Ʈ��ݰ� ip����� ȥ�յ�
48
<li><img alt="" src="../images/down.gif" /> <a href="#mixed">�̸���ݰ� IP����� ȥ�յ�
50
<li><img alt="" src="../images/down.gif" /> <a href="#default"><code>_default_</code> ����ȣ��Ʈ
52
<li><img alt="" src="../images/down.gif" /> <a href="#migrate">�̸���� ����ȣ��Ʈ�� IP���
53
����ȣ��Ʈ�� �ű��</a></li>
54
<li><img alt="" src="../images/down.gif" /> <a href="#serverpath"><code>ServerPath</code>
57
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
59
<h2><a name="purename" id="purename">IP �ּ� �Ѱ��� ���� �̸����
60
������Ʈ ��ϱ�.</a></h2>
62
<p>������ IP �ּҰ� �Ѱ� �ְ�, DNS���� ���� �ּ�(CNAMES)��
63
�� ��ǻ�� ����Ų��. �� ��ǻ�Ϳ��� <code>www.example.com</code>��
64
<code>www.example.org</code>�� �������� �����ϰ� �ʹ�.</p>
66
<div class="note"><h3>Note</h3><p>����ġ ������ ����ȣ��Ʈ ������
67
�Ѵٰ� �� ȣ��Ʈ���� ���� DNS ���� �ڵ��̷� ��������
68
�ʴ´�. <em>�ݵ��</em> DNS�� IP �ּҸ� ����Ű��
69
�̸��� �־�� �Ѵ�. �ȱ��� �ƹ��� ������Ʈ�� ��
70
�� ����. �˻��غ��� ���� <code>hosts</code> ���Ͽ� ����
71
�߰��� �� ������, �̴� hosts ���� ���� ��ǻ�Ϳ���
75
<div class="example"><h3>���� ����</h3><p><code>
78
# ����ġ�� ��Ʈ 80�� ��ٸ���<br />
81
# ��� IP �ּҿ��� ����ȣ��Ʈ ��û�� ��ٸ���<br />
82
NameVirtualHost *:80<br />
84
<VirtualHost *:80><br />
86
DocumentRoot /www/example1<br />
87
ServerName www.example.com<br />
89
# �ٸ� ���þ�鵵 �ִ�<br />
92
</VirtualHost><br />
94
<VirtualHost *:80><br />
96
DocumentRoot /www/example2<br />
97
ServerName www.example.org<br />
99
# �ٸ� ���þ�鵵 �ִ�<br />
105
<p>��ǥ�� ��� �ּҸ� ����Ű�Ƿ�, �ּ����� � ��û��
106
�������� �ʴ´�. <code>www.example.com</code>��
107
�������Ͽ� ó������ �����Ƿ� ���� ���� �켱������ ������,
108
<cite>�⺻</cite>Ȥ�� <cite>�ʱ�</cite> ������ �ȴ�.
109
� <code>ServerName</code> ���þ�� �ش�����ʴ� ��û��
110
ù��° <code>VirtualHost</code>�� �����Ѵ�.</p>
115
<p>���Ѵٸ� <code>*</code> ��� �ý����� ���� IP
116
�ּҸ� ����� �� �ִ�. �� ���
117
<code>VirtualHost</code>�� �ƱԸ�Ʈ��
118
<code>NameVirtualHost</code>�� �ƱԸ�Ʈ�� ��ġ�ؾ�
121
<div class="example"><p><code>
122
NameVirtualHost 172.20.30.40<br />
124
<VirtualHost 172.20.30.40><br />
128
<p>���� ISP���� �������� IP �ּҸ� �������� ��
129
IP �ּҸ� �� ��쿡�� <code>*</code>�� ����ϴ�
130
���� �����ϴ�. <code>*</code>�� ��� IP �ּҿ�
131
�ش��ϹǷ�, IP �ּҰ� ����Ǿ ������ ������
135
<p>���� ��κ��� �̸���� ����ȣ��Ʈ ������ ���� ����.
136
���ܴ� �ٸ� IP �ּҳ� ��Ʈ�� �ٸ� ������ �����Ϸ���
139
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
140
<div class="section">
141
<h2><a name="twoips" id="twoips">���� IP �ּҿ��� �̸����
145
<h3>����</h3><p>���⼭ ������ ����� IP �ּҰ�
149
<p>������ IP �ּҰ� �ΰ��ִ�. �ϳ�����
150
(<code>172.20.30.40</code>) "��" ����
151
<code>server.domain.com</code>�� �����ϰ�, �ٸ� �ϳ�����
152
(<code>172.20.30.50</code>) ���� ����ȣ��Ʈ�� ������
155
<div class="example"><h3>���� ����</h3><p><code>
160
# 172.20.30.40���� �����ϴ� "��"�����̴�<br />
161
ServerName server.domain.com<br />
162
DocumentRoot /www/mainserver<br />
165
NameVirtualHost 172.20.30.50<br />
167
<VirtualHost 172.20.30.50><br />
168
<span class="indent">
169
DocumentRoot /www/example1<br />
170
ServerName www.example.com<br />
172
# �ٸ� ���þ�鵵 �ִ� ...<br />
175
</VirtualHost><br />
177
<VirtualHost 172.20.30.50><br />
178
<span class="indent">
179
DocumentRoot /www/example2<br />
180
ServerName www.example.org<br />
182
# �ٸ� ���þ�鵵 �ִ� ...<br />
188
<p><code>172.20.30.50</code>�� �ƴ� �ּҿ� ���� ��û��
189
�ּ����� �����Ѵ�. ȣ��Ʈ�� ����, �� <code>Host:</code>
190
������� <code>172.20.30.50</code>�� ��û�ϸ�
191
<code>www.example.com</code>�� �����Ѵ�.</p>
193
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
194
<div class="section">
195
<h2><a name="intraextra" id="intraextra">(���ο� �ܺ� �ּҿ� ����)
196
�ٸ� IP �ּҷ� ���� ������ �����ϱ�.</a></h2>
198
<p>���� ��ǻ�Ϳ� IP �ּҰ� �ΰ� (<code>192.168.1.1</code>��
199
<code>172.20.30.40</code>) �ִ�. ��ǻ�ʹ� ���� (��Ʈ���)
200
��Ʈ���� �ܺ� (���ͳ�) ��Ʈ�� ���̿� ��ġ�Ѵ�. ��Ʈ�� �ۿ���
201
<code>server.example.com</code>�� �ܺ� �ּҸ�
202
(<code>172.20.30.40</code>) �ǹ��ϰ�, ��Ʈ�� ���ο��� ����
203
�̸��� ���� �ּҷ� (<code>192.168.1.1</code>) ����Ѵ�.</p>
205
<p>������ <code>VirtualHost</code> ���� �Ѱ��� ���ο� �ܺ�
206
���信 ���� ������ ������ �� �ִ�.</p>
208
<div class="example"><h3>���� ����</h3><p><code>
211
NameVirtualHost 192.168.1.1<br />
212
NameVirtualHost 172.20.30.40<br />
214
<VirtualHost 192.168.1.1 172.20.30.40><br />
215
<span class="indent">
216
DocumentRoot /www/server1<br />
217
ServerName server.example.com<br />
218
ServerAlias server<br />
223
<p>���� �� ��Ʈ������ ���� ��û�� ����
224
<code>VirtualHost</code>���� �����Ѵ�.</p>
227
<h3>����:</h3><p>���� ��Ʈ�������� ������ ȣ��Ʈ��
228
<code>server.example.com</code> ��� �̸�
229
<code>server</code>�� �����ϴ�.</p>
231
<p>���� ���� ������ IP �ּ� ��� <code>*</code>��
232
����Ͽ� ������ ��� �ּҿ� �����ϰ� ������ ��
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">���� ��Ʈ���� ���� �ٸ� ����Ʈ
241
<p>���� IP�� ���� ��Ʈ���� ���� �ٸ� �������� �����Ѵٰ�
242
��������. �̴� "NameVirtualHost" �±� ��Ʈ�� �����ϸ�
243
�����ϴ�. NameVirtualHost name:port���� <VirtualHost
244
name:port>�� Ȥ�� Listen ���þ ����ϸ� �ȵȴ�.</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>��
289
<code>www.example.org</code>�� �ش��ϴ� �� IP �ּҸ�
290
(<code>172.20.30.40</code>�� <code>172.20.30.50</code>)
293
<div class="example"><h3>���� ����</h3><p><code>
298
<VirtualHost 172.20.30.40><br />
299
<span class="indent">
300
DocumentRoot /www/example1<br />
301
ServerName www.example.com<br />
303
</VirtualHost><br />
305
<VirtualHost 172.20.30.50><br />
306
<span class="indent">
307
DocumentRoot /www/example2<br />
308
ServerName www.example.org<br />
313
<p><code><VirtualHost></code> ���þ�� ������ �ּҿ�
314
�ش������ʴ� �ּҷ� (���� ���, <code>localhost</code>)
315
��û�� ������ �ּ����� �ִ� ��� �ּ����� �����Ѵ�.</p>
317
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
318
<div class="section">
319
<h2><a name="ipport" id="ipport">��Ʈ��ݰ� ip����� ȥ�յ�
322
<p>������ ���� <code>www.example.com</code>��
323
<code>www.example.org</code>�� �ش��ϴ� �� IP �ּҸ�
324
(<code>172.20.30.40</code>�� <code>172.20.30.50</code>)
325
������. �� IP�� 80���� 8080�� ��Ʈ�� ����ȣ��Ʈ�� ������.</p>
327
<div class="example"><h3>���� ����</h3><p><code>
330
Listen 172.20.30.40:80<br />
331
Listen 172.20.30.40:8080<br />
332
Listen 172.20.30.50:80<br />
333
Listen 172.20.30.50:8080<br />
335
<VirtualHost 172.20.30.40:80><br />
336
<span class="indent">
337
DocumentRoot /www/example1-80<br />
338
ServerName www.example.com<br />
340
</VirtualHost><br />
342
<VirtualHost 172.20.30.40:8080><br />
343
<span class="indent">
344
DocumentRoot /www/example1-8080<br />
345
ServerName www.example.com<br />
347
</VirtualHost><br />
349
<VirtualHost 172.20.30.50:80><br />
350
<span class="indent">
351
DocumentRoot /www/example2-80<br />
352
ServerName www.example.org<br />
354
</VirtualHost><br />
356
<VirtualHost 172.20.30.50:8080><br />
357
<span class="indent">
358
DocumentRoot /www/example2-8080<br />
359
ServerName www.example.org<br />
364
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
365
<div class="section">
366
<h2><a name="mixed" id="mixed">�̸���ݰ� IP����� ȥ�յ�
369
<p>�ּ��� ����� �̸���� ����ȣ��Ʈ��, �ٸ� ���� IP���
370
����ȣ��Ʈ�� �����ϰ� �ʹ�.</p>
372
<div class="example"><h3>���� ����</h3><p><code>
377
NameVirtualHost 172.20.30.40<br />
379
<VirtualHost 172.20.30.40><br />
380
<span class="indent">
381
DocumentRoot /www/example1<br />
382
ServerName www.example.com<br />
384
</VirtualHost><br />
386
<VirtualHost 172.20.30.40><br />
387
<span class="indent">
388
DocumentRoot /www/example2<br />
389
ServerName www.example.org<br />
391
</VirtualHost><br />
393
<VirtualHost 172.20.30.40><br />
394
<span class="indent">
395
DocumentRoot /www/example3<br />
396
ServerName www.example3.net<br />
398
</VirtualHost><br />
401
<VirtualHost 172.20.30.50><br />
402
<span class="indent">
403
DocumentRoot /www/example4<br />
404
ServerName www.example4.edu<br />
406
</VirtualHost><br />
408
<VirtualHost 172.20.30.60><br />
409
<span class="indent">
410
DocumentRoot /www/example5<br />
411
ServerName www.example5.gov<br />
416
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
417
<div class="section">
418
<h2><a name="default" id="default"><code>_default_</code> ����ȣ��Ʈ
421
<h3><a name="defaultallports" id="defaultallports">��� ��Ʈ�� ����
422
<code>_default_</code> ����ȣ��Ʈ</a></h3>
424
<p>� ����ȣ��Ʈ���� �ش��������� IP �ּҿ� ��Ʈ�� ����
425
<em>���</em> ��û�� ó���ϱ�.</p>
427
<div class="example"><h3>���� ����</h3><p><code>
430
<VirtualHost _default_:*><br />
431
<span class="indent">
432
DocumentRoot /www/default<br />
437
<p>default(�⺻) ����ȣ��Ʈ�� ��Ʈ�� ���ϵ�ī�带 ����Ͽ� � ��û��
438
�ּ����� �������� �����.</p>
440
<p>default ����ȣ��Ʈ�� ����� �̸���� ����ȣ��Ʈ�� ����ϴ�
441
�ּ�/��Ʈ���� ��û�� �������� �ʴ´�. �� �� ���ų�
442
<code>Host:</code> ����� ������ ��û�� �� ������ �̸����
444
�ּ�/��Ʈ�� ó������ ���� ����ȣ��Ʈ)�� �����Ѵ�.</p>
446
<p><code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code>��
447
<code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>��
448
����Ͽ� � ��û�� Ư�� ������(Ȥ�� ��ũ��Ʈ)��
449
���ۼ���(rewrite) �� �ִ�.</p>
452
<h3><a name="defaultdifferentports" id="defaultdifferentports">���� ��Ʈ�� ����
453
<code>_default_</code> ����ȣ��Ʈ</a></h3>
455
<p>���� ���� ������, ������ ���� ��Ʈ�� ��ٸ��� 80��
456
��Ʈ�� ���ؼ� �߰��� <code>_default_</code> ����ȣ��Ʈ��
459
<div class="example"><h3>���� ����</h3><p><code>
462
<VirtualHost _default_:80><br />
463
<span class="indent">
464
DocumentRoot /www/default80<br />
467
</VirtualHost><br />
469
<VirtualHost _default_:*><br />
470
<span class="indent">
471
DocumentRoot /www/default<br />
477
<p>80�� ��Ʈ�� ���� default ����ȣ��Ʈ�� (<em>�ݵ��</em>
478
���ϵ�ī�� ��Ʈ�� ���� �⺻ ����ȣ��Ʈ ������ ���;� �Ѵ�)
479
������������ IP �ּҷ� ������ ��� ��û�� �����Ѵ�.
480
�ּ����� ����� ��û�� �������� ���Ѵ�.</p>
483
<h3><a name="defaultoneport" id="defaultoneport">�� ��Ʈ�� ����
484
<code>_default_</code> ����ȣ��Ʈ</a></h3>
486
<p>80�� ��Ʈ�� ���ؼ��� default ����ȣ��Ʈ�� ����� �ʹ�.</p>
488
<div class="example"><h3>���� ����</h3><p><code>
491
<VirtualHost _default_:80><br />
492
DocumentRoot /www/default<br />
497
<p>��Ʈ 80���� ������������ �ּҿ� ���� ��û�� �⺻
498
����ȣ��Ʈ�� �����ϰ�, �ٸ� ������������ �ּҿ� ��Ʈ��
499
���� ��û�� �� ������ �����Ѵ�.</p>
502
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
503
<div class="section">
504
<h2><a name="migrate" id="migrate">�̸���� ����ȣ��Ʈ�� IP���
505
����ȣ��Ʈ�� �ű��</a></h2>
507
<p>(<a href="#name">�̸����</a>�� ù��° ������) ȣ��Ʈ��
508
<code>www.example.org</code>�� ���� �̸���� ����ȣ��Ʈ��
509
�ڽ��� IP �ּҸ� ������ �Ѵ�. �̸���� ����ȣ��Ʈ�� ����
510
IP �ּҸ� ij���ϴ� ���Ӽ����� ���Ͻÿ��� ������ ���ϱ�����
511
�ű�� ���� �� ��θ� �����ϰ� �ʹ�.</p>
514
����� <code>VirtualHost</code> ���þ �� IP �ּҸ���
515
(<code>172.20.30.50</code>) �߰��ϸ�ǹǷ� ����.</p>
517
<div class="example"><h3>���� ����</h3><p><code>
521
ServerName www.example.com<br />
522
DocumentRoot /www/example1<br />
524
NameVirtualHost 172.20.30.40<br />
526
<VirtualHost 172.20.30.40 172.20.30.50><br />
527
<span class="indent">
528
DocumentRoot /www/example2<br />
529
ServerName www.example.org<br />
532
</VirtualHost><br />
534
<VirtualHost 172.20.30.40><br />
535
<span class="indent">
536
DocumentRoot /www/example3<br />
537
ServerName www.example.net<br />
538
ServerAlias *.example.net<br />
544
<p>���� (IP��� ����ȣ��Ʈ�� ����) ���ο� �ּҿ� (�̸����
545
����ȣ��Ʈ�� ����) ���� �ּ� ��� ����ȣ��Ʈ�� ������
548
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
549
<div class="section">
550
<h2><a name="serverpath" id="serverpath"><code>ServerPath</code>
551
���þ� ����ϱ�</a></h2>
553
<p>�� �̸���� ����ȣ��Ʈ�� ���� ������ �ִ�. �ùٸ�
554
����ȣ��Ʈ�� �����ϱ����� Ŭ���̾�Ʈ�� �ùٸ�
555
<code>Host:</code> ����� ������ �Ѵ�. ������ HTTP/1.0
556
Ŭ���̾�Ʈ�� �� ����� ������ ���ϸ� ����ġ�� Ŭ���̾�Ʈ��
557
� ����ȣ��Ʈ�� �������ϴ��� �� �� ���� (���� ������
558
����ȣ��Ʈ�� ��û�� �����Ѵ�). ������ �������� ������ ȣȯ��
559
�����ϱ����� ������ ����ȣ��Ʈ�� �����, ��� �̸����
560
����ȣ��Ʈ�� URL ���λ縦 �����ϴ� ��ũ ��� ��������
563
<div class="example"><h3>���� ����</h3><p><code>
566
NameVirtualHost 172.20.30.40<br />
568
<VirtualHost 172.20.30.40><br />
569
<span class="indent">
570
# primary vhost<br />
571
DocumentRoot /www/subdomain<br />
572
RewriteEngine On<br />
573
RewriteRule ^/.* /www/subdomain/index.html<br />
576
</VirtualHost><br />
578
<VirtualHost 172.20.30.40><br />
579
DocumentRoot /www/subdomain/sub1<br />
580
<span class="indent">
581
ServerName www.sub1.domain.tld<br />
582
ServerPath /sub1/<br />
583
RewriteEngine On<br />
584
RewriteRule ^(/sub1/.*) /www/subdomain$1<br />
587
</VirtualHost><br />
589
<VirtualHost 172.20.30.40><br />
590
<span class="indent">
591
DocumentRoot /www/subdomain/sub2<br />
592
ServerName www.sub2.domain.tld<br />
593
ServerPath /sub2/<br />
594
RewriteEngine On<br />
595
RewriteRule ^(/sub2/.*) /www/subdomain$1<br />
601
<p><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> ���þ����
602
URL <code>http://www.sub1.domain.tld/sub1/</code>�� ����
603
��û�� <em>��</em> subl-����ȣ��Ʈ�� �����Ѵ�.<br />
604
Ŭ���̾�Ʈ�� �ùٸ� <code>Host:</code> ����� �����ٸ�,
605
URL <code>http://www.sub1.domain.tld/</code>�� ���� ��û��
606
subl-����ȣ��Ʈ������ �����Ѵ�. ���� <code>Host:</code> �����
607
������������ Ŭ���̾�Ʈ�� ������ ȣ��Ʈ�� �ִ� ������������
610
<p>��� ������ ������ �����϶�: Ŭ���̾�Ʈ��
611
<code>Host:</code> ����� ������������
612
<code>http://www.sub2.domain.tld/sub1/</code>�� ���� ��û��
613
subl-����ȣ��Ʈ�� �����Ѵ�.</p>
615
<p><code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>
616
���þ ����Ͽ� �ùٸ� <code>Host:</code> ����� ������
617
Ŭ���̾�Ʈ�� (<em>���� ���</em>, URL ��ġ�簡 �ְų� ����)
618
�� URL�� ��� ����� �� �ִ�.</p>
621
<div class="bottomlang">
622
<p><span>������ ���: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> |
623
<a href="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
624
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
625
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a></p>
626
</div><div id="footer">
627
<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>
628
<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'