summaryrefslogtreecommitdiffstats
path: root/docs/manual/vhosts/mass.html.ko.euc-kr
blob: ac6f99ef698fa53324cdf75a9db86f3c0772c97e (plain)
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
<?xml version="1.0" encoding="EUC-KR"?>
<!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="ko" xml:lang="ko"><head><!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>�뷮�� ����ȣ��Ʈ�� �������� �����ϱ� - Apache HTTP Server</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 rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
<script src="../style/scripts/prettify.js" type="text/javascript">
</script>

<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/quickreference.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p>
<p class="apache">Apache HTTP Server Version 2.5</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 Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.5</a> &gt; <a href="./">����ȣ��Ʈ</a></div><div id="page-content"><div id="preamble"><h1>�뷮�� ����ȣ��Ʈ�� �������� �����ϱ�</h1>
<div class="toplang">
<p><span>������ ���: </span><a href="../en/vhosts/mass.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../fr/vhosts/mass.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
<a href="../ko/vhosts/mass.html" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="../tr/vhosts/mass.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
</div>
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
            �ֱٿ� ����� ������ ���� ������ �����ϼ���.</div>


    <p>�� ������ ����ġ 1.3���� �뷮�� ����ȣ��Ʈ�� ȿ��������
    �����ϴ� ����� �����Ѵ�. 
    </p>

</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#motivation">����</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#overview">����</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#simple">������ ���� ����ȣ��Ʈ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#homepages">�������� ȣ��Ʈ�ϴ� Ȩ������ �ý���</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#combinations">�� ������ ���� ����ȣ��Ʈ
    �ý��� ����ϱ�</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#ipbased">�� ȿ������ IP��� ����ȣ��Ʈ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#oldversion">����ġ ���� ���� ����ϱ�</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#simple.rewrite"><code>mod_rewrite</code>��
    ����� ������ ���� ����ȣ��Ʈ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#homepages.rewrite"><code>mod_rewrite</code>��
    ����� Ȩ������ �ý���</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#xtra-conf">������ ����ȣ��Ʈ ��������
    ����ϱ�</a></li>
</ul><ul class="seealso"><li><a href="#comments_section">Comments</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="motivation" id="motivation">����</a></h2>

    <p>����� <code>httpd.conf</code>�� ������ ���� ���� �����
    <code>&lt;VirtualHost&gt;</code> ���ǵ��� ���� �ִٸ� ���⼭
    �����ϴ� ����� ������ �� ���̴�:</p>

<div class="example"><p><code>
NameVirtualHost 111.22.33.44<br />
&lt;VirtualHost 111.22.33.44&gt;<br />
<span class="indent">
    ServerName                 www.customer-1.com<br />
    DocumentRoot        /www/hosts/www.customer-1.com/docs<br />
    ScriptAlias  /cgi-bin/  /www/hosts/www.customer-1.com/cgi-bin<br />
</span>
&lt;/VirtualHost&gt;<br />
&lt;VirtualHost 111.22.33.44&gt;<br />
<span class="indent">
    ServerName                 www.customer-2.com<br />
    DocumentRoot        /www/hosts/www.customer-2.com/docs<br />
    ScriptAlias  /cgi-bin/  /www/hosts/www.customer-2.com/cgi-bin<br />
</span>
&lt;/VirtualHost&gt;<br />
# �ٺ� �ٺ� �ٺ�<br />
&lt;VirtualHost 111.22.33.44&gt;<br />
<span class="indent">
    ServerName                 www.customer-N.com<br />
    DocumentRoot        /www/hosts/www.customer-N.com/docs<br />
    ScriptAlias  /cgi-bin/  /www/hosts/www.customer-N.com/cgi-bin<br />
</span>
&lt;/VirtualHost&gt;
</code></p></div>

    <p>�⺻ ������ ������ <code>&lt;VirtualHost&gt;</code>
    ���� ��θ� �������� ó���ϵ��� ��ü�ϴ� ���̴�.
    �׷��� ���� ������ �ִ�:</p>

    <ol>
      <li>���������� �۾����� ����ġ�� ���� �����ϰ� �޸𸮸�
      ���� ����Ѵ�.</li>

      <li>����ȣ��Ʈ�� �߰��ϱ����� ���Ͻý��ۿ� ������
      ���丮�� ����� DNS�� �׸��� �߰��ϱ⸸ �ϸ�ȴ�. ��,
      ����ġ�� �缳���ϰ� ������� �ʿ䰡 ����.</li>
    </ol>

    <p>������ �� ����ȣ��Ʈ���� �ٸ� �α������� ����� �� ���ٴ�
    ���̴�. �׷��� �ſ� ���� ����ȣ��Ʈ�� ����Ѵٸ� ���ϱ���ڸ�
    �� ������⶧���� ���� �ٸ� �α������� ����� �� ����. ��������
    fifo�� �α׸� ������, �޴� ������ �α׸� ó���Ͽ� ������
    ����� (��� ���� ���� ���� �ִ�) �� ����.</p>

</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="overview" id="overview">����</a></h2>

    <p>����ȣ��Ʈ�� IP �ּҿ� HTTP ��û�� <code>Host:</code>
    ��� ������ �����Ѵ�. �⺻������ �뷮��
    ���� ����ȣ��Ʈ ����� �ڵ����� ����ȣ��Ʈ ������ ��û��
    ���ϰ�ο� �����Ѵ�. �̴� ��κ� <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code>��
    ����Ͽ� ���� �ذ��� �� ������, ����ġ 1.3.6 ���ϸ� ����Ѵٸ�
    <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>�� ����ؾ� �Ѵ�. �� �� ���
    ��� �⺻������ ������ ���Ե��� �ʴ´�. �� ����� ����Ϸ���
    ����ġ�� �����ϰ� �������Ҷ� �����ؾ� �Ѵ�.</p>

    <p>���� ����ȣ��Ʈ�� �Ϲ����� ����ȣ��Ʈó�� ���̰��Ϸ���
    ���������� `�ӿ���' �Ѵ�. ���� �߿��� ���� ����ġ�� �ڱ�����
    URL ���� ���鶧 ����� �������̴�. ��������
    <code>ServerName</code> ���þ�� �����ϸ�, CGI����
    <code>SERVER_NAME</code> ȯ�溯���� �־�����.  ������ ����
    �������� <code class="directive"><a href="../mod/core.html#usecanonicalname">UseCanonicalName</a></code> ������ �޷ȴ�.
    <code>UseCanonicalName Off</code>�̸� ��û�� <code>Host:</code>
    ��� ������ �������� �ȴ�. <code>UseCanonicalName DNS</code>�̸�
    ����ȣ��Ʈ�� IP �ּҸ� ��DNS �˻��Ͽ� �������� �˾Ƴ���.
    ���ڴ� �̸���� ���� ����ȣ��Ʈ���� ����ϰ�, ���ڴ� IP���
    ����ȣ��Ʈ���� ����Ѵ�. <code>Host:</code> ����� ���ų�
    DNS �˻��� �����Ͽ� ����ġ�� �������� �˾Ƴ��� ���ϸ�
    <code>ServerName</code>���� ������ ���� ��� ����Ѵ�.</p>

    <p>�ٸ� `����' ���� (<code>DocumentRoot</code>�� �����ϸ�,
    CGI���� <code>DOCUMENT_ROOT</code> ȯ�溯���� �־�����)
    ������Ʈ�̴�. �Ϲ����� ��� core ����� �� ������ ����Ͽ�
    URI�� �ش��ϴ� ���ϸ��� ã����, ������ ���� ����ȣ������ �Ҷ��� �ٸ�
    ����� (<code>mod_vhost_alias</code>�� <code>mod_rewrite</code>)
    �ٸ� ������� �̷� �۾��� �Ѵ�. �� ��� ���
    <code>DOCUMENT_ROOT</code> ȯ�溯���� ������� �����Ƿ�
    CGI�� SSI ������ �� ���� ����Ѵٸ� �߸��� ����� ���� ��
    �ִ�.</p>

</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="simple" id="simple">������ ���� ����ȣ��Ʈ</a></h2>

    <p>�� <a href="#motivation">����</a> ���� ����ȣ��Ʈ
    ������ <code>mod_vhost_alias</code>�� ����Ͽ� �� �Ϲ�������
    �����ߴ�.</p>

<div class="example"><p><code>
# Host: ������� �������� �˾Ƴ���<br />
UseCanonicalName Off<br />
<br />
# ù��° �ʵ带 ����Ͽ� �� �α׸� ����ȣ��Ʈ���� ���� �� �ִ�<br />
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />
CustomLog logs/access_log vcommon<br />
<br />
# ��û�� ó���ϱ����� ���ϸ��� �������� �����Ѵ�<br />
VirtualDocumentRoot /www/hosts/%0/docs<br />
VirtualScriptAlias  /www/hosts/%0/cgi-bin
</code></p></div>

    <p>�� �������� <code>UseCanonicalName Off</code>��
    <code>UseCanonicalName DNS</code>�� �����ϱ⸸ �ϸ� IP���
    ����ȣ��Ʈ�� �ȴ�. ����ȣ��Ʈ�� 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="homepages" id="homepages">�������� ȣ��Ʈ�ϴ� Ȩ������ �ý���</a></h2>

    <p>ISP Ȩ������ ������ ���� ���� ������ �����ߴ�. ���� ��
    ������ ������ ����ϸ� <code>www.user.isp.com</code>�� ������
    <code>/home/user/</code>�� �δ� ������ �������� �Ϻθ� ������
    ���ϸ��� ���� �� �ִ�. �� ������
    <code>cgi-bin</code>�� �� ����ȣ��Ʈ�� ���� �������ʰ�
    ��� ����ȣ��Ʈ�� ���� ����Ѵ�.</p>

<div class="example"><p><code>
# �⺻���� ������ ���� ����. �׸���<br />
<br />
# ���ϸ��� �������� �Ϻθ� �����Ѵ�<br />
VirtualDocumentRoot /www/hosts/%2/docs<br />
<br />
# �ϳ��� cgi-bin ���丮<br />
ScriptAlias  /cgi-bin/  /www/std-cgi/<br />
</code></p></div>

    <p><code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code> �������� �� ������
    <code>VirtualDocumentRoot</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="combinations" id="combinations">�� ������ ���� ����ȣ��Ʈ
    �ý��� ����ϱ�</a></h2>

    <p>�� ������ ������ ���� ����ġ�� �Ϲ�����
    <code>&lt;VirtualHost&gt;</code> ���þ ����Ͽ� ����
    ����ȣ��Ʈ ������ ������ ������ �� �ִ�. ���� ���, ������
    ���� ������ Ȩ������ ������ IP �ּ� �Ѱ�, �������
    �������� �ٸ� IP �ּ� �Ѱ��� �ο��Ѵ�. ���� ����ó��
    <code>&lt;VirtualHost&gt;</code> ���� ���ǿ� ��� ���� ����
    �ִ�.</p>

<div class="example"><p><code>
UseCanonicalName Off<br />
<br />
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />
<br />
&lt;Directory /www/commercial&gt;<br />
<span class="indent">
    Options FollowSymLinks<br />
    AllowOverride All<br />
</span>
&lt;/Directory&gt;<br />
<br />
&lt;Directory /www/homepages&gt;<br />
<span class="indent">
    Options FollowSymLinks<br />
    AllowOverride None<br />
</span>
&lt;/Directory&gt;<br />
<br />
&lt;VirtualHost 111.22.33.44&gt;<br />
<span class="indent">
    ServerName www.commercial.isp.com<br />
    <br />
    CustomLog logs/access_log.commercial vcommon<br />
    <br />
    VirtualDocumentRoot /www/commercial/%0/docs<br />
    VirtualScriptAlias  /www/commercial/%0/cgi-bin<br />
</span>
&lt;/VirtualHost&gt;<br />
<br />
&lt;VirtualHost 111.22.33.45&gt;<br />
<span class="indent">
    ServerName www.homepages.isp.com<br />
    <br />
    CustomLog logs/access_log.homepages vcommon<br />
    <br />
    VirtualDocumentRoot /www/homepages/%0/docs<br />
    ScriptAlias         /cgi-bin/ /www/std-cgi/<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="ipbased" id="ipbased">�� ȿ������ IP��� ����ȣ��Ʈ</a></h2>

    <p><a href="#simple">ù��° ��</a>���� ���� ������ ������
    IP��� ����ȣ��Ʈ�� �ٲ� �� �ִٰ� ���ߴ�. ��������
    �׷� ������ �� ��û���� DNS�� ã�ƾ��ϹǷ� �ſ� ��ȿ�����̴�.
    �̸���� IP �ּҷ� ���Ͻý����� �����ϰ� ���� �������
    �α׸� �����ϸ� ������ �ذ��� �� �ִ�. ����ġ�� ��������
    �ٷ� �ʿ䰡 ��������, DNS �˻��� ���� �ʰ� �ȴ�.</p>

<div class="example"><p><code>
# IP �ּҸ� ��DNS �˻��Ͽ� �������� �˾Ƴ���<br />
UseCanonicalName DNS<br />
<br />
# �α׸� ���� �� �ֵ��� IP �ּҸ� �����Ѵ�<br />
LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon<br />
CustomLog logs/access_log vcommon<br />
<br />
# ���ϸ��� IP �ּҸ� �����Ѵ�<br />
VirtualDocumentRootIP /www/hosts/%0/docs<br />
VirtualScriptAliasIP  /www/hosts/%0/cgi-bin<br />
</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="oldversion" id="oldversion">����ġ ���� ���� ����ϱ�</a></h2>

    <p>�� ������ ����ġ ���� 1.3.6 ���Ŀ� ���Ե�
    <code>mod_vhost_alias</code>�� ����Ѵ�.
    <code>mod_vhost_alias</code>�� ���� ����ġ ������ ����Ѵٸ�
    �̹� ���ߵ��� <code>mod_rewrite</code>�� ����Ͽ�, ��
    Host:-������ ����ȣ��Ʈ����, ������ �� �ִ�.</p>

    <p>�� �α׿� ���Ͽ� ������ ���� �ִ�. ����ġ 1.3.6����
    �α����� ���þ� <code>%V</code>�� ���ԵǾ���, ���� 1.3.0
    - 1.3.3���� �� ����� <code>%v</code> �ɼ��� ��� �ߴ�. �׷���
    ���� 1.3.4���� �̷� ����� ����. � ����ġ ����������
    <code>.htaccess</code> ���Ͽ��� <code>UseCanonicalName</code>
    ���þ ����� �� �����Ƿ� �α׿� �̻��� ������ ��ϵ� �� �ִ�.
    �׷��Ƿ� ���� ���� ����� <code>%{Host}i</code> ���þ
    ����Ͽ� <code>Host:</code> ����� ���� �α׿� ����� ���̴�.
    ��, �� ����� <code>%V</code>�� ���������ʴ� <code>:port</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="simple.rewrite" id="simple.rewrite"><code>mod_rewrite</code>��
    ����� ������ ���� ����ȣ��Ʈ</a></h2>

    <p>������ <a href="#simple">ù��° ��</a>�� ���� ���� �ϴ�
    <code>httpd.conf</code> ���̴�. ó�� ������ ù��° ����
    ���� ���������, ���� �������� ȣȯ���� <code>mod_rewrite</code>��
    ������ ������ ���� �����Ǿ���. ������ ������ ���� �۾���
    �ϴ� <code>mod_rewrite</code>�� �����Ѵ�.</p>

    <p>Ư���� �����ؾ� �� ������ �ִ�. �⺻������
    <code>mod_rewrite</code>�� (<code>mod_alias</code> ��) �ٸ�
    URI ���� ��� ������ ����ȴ�. �׷��� �ٸ� URI ���� �����
    ���� ������ ���� �����Ͽ� <code>mod_rewrite</code>�� �����ؾ� �Ѵ�.
    ��, ���� ����ȣ��Ʈ���� <code>ScriptAlias</code>�� ����
    ����� ���ؼ��� Ư���� �۾��� �ʿ��ϴ�.</p>

<div class="example"><p><code>
# Host: ������� �������� ��´�<br />
UseCanonicalName Off<br />
<br />
# splittable logs<br />
LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon<br />
CustomLog logs/access_log vcommon<br />
<br />
&lt;Directory /www/hosts&gt;<br />
<span class="indent">
    # ScriptAlias ������ CGI ������ ������ �� ���⶧����<br />
    # ���⿡ ExecCGI�� ����Ѵ�<br />
    Options FollowSymLinks ExecCGI<br />
</span>
&lt;/Directory&gt;<br />
<br />
# ���� ����� �κ��̴�<br />
<br />
RewriteEngine On<br />
<br />
# Host: ������� ������ ���������� ��ҹ��ڰ� �ڼ������� �� �ִ�<br />
RewriteMap  lowercase  int:tolower<br />
<br />
## �Ϲ� ������ ���� ó���Ѵ�:<br />
# Alias /icons/ �� �����ϵ��� - �ٸ� alias�� ���ؼ��� �ݺ�<br />
RewriteCond  %{REQUEST_URI}  !^/icons/<br />
# CGI�� �����ϵ���<br />
RewriteCond  %{REQUEST_URI}  !^/cgi-bin/<br />
# Ư���� �۾�<br />
RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/docs/$1<br />
<br />
## ���� CGI�� ó���Ѵ� - MIME type�� �����ؾ� �Ѵ�<br />
RewriteCond  %{REQUEST_URI}  ^/cgi-bin/<br />
RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1  [T=application/x-httpd-cgi]<br />
<br />
# ��!
</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="homepages.rewrite" id="homepages.rewrite"><code>mod_rewrite</code>��
    ����� Ȩ������ �ý���</a></h2>

    <p>������ <a href="#homepages">�� ��</a>�� ���� ����
    �Ѵ�.</p>

<div class="example"><p><code>
RewriteEngine on<br />
<br />
RewriteMap   lowercase  int:tolower<br />
<br />
# CGI�� �����ϵ���<br />
RewriteCond  %{REQUEST_URI}  !^/cgi-bin/<br />
<br />
# RewriteRule�� �����ϵ��� ȣ��Ʈ���� �ùٸ��� �˻��Ѵ�<br />
RewriteCond  ${lowercase:%{SERVER_NAME}}  ^www\.[a-z-]+\.isp\.com$<br />
<br />
# ����ȣ��Ʈ���� URI �տ� ���δ�<br />
# [C]�� �� ����� ������ ���� ���ۼ��� �������� ���Ѵ�<br />
RewriteRule  ^(.+)  ${lowercase:%{SERVER_NAME}}$1  [C]<br />
<br />
# ���� ���� ���ϸ��� �����<br />
RewriteRule  ^www\.([a-z-]+)\.isp\.com/(.*) /home/$1/$2<br />
<br />
# ��ü CGI ���丮�� �����Ѵ�<br />
ScriptAlias  /cgi-bin/  /www/std-cgi/
</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="xtra-conf" id="xtra-conf">������ ����ȣ��Ʈ ��������
    ����ϱ�</a></h2>

    <p>������ <code>mod_rewrite</code>�� ���� ����� ����Ͽ�
    ������ ���������� ������ ����ȣ��Ʈ�� ������Ʈ�� �˾Ƴ���.
    �� ���������� �� ������ ������ �ʿ��ϴ�.</p>

    <p><code>vhost.map</code> ������ ������ ����:</p>

<div class="example"><p><code>
www.customer-1.com  /www/customers/1<br />
www.customer-2.com  /www/customers/2<br />
# ...<br />
www.customer-N.com  /www/customers/N<br />
</code></p></div>

    <p><code>http.conf</code>�� ������ ����:</p>

<div class="example"><p><code>
RewriteEngine on<br />
<br />
RewriteMap   lowercase  int:tolower<br />
<br />
# ���������� �����Ѵ�<br />
RewriteMap   vhost      txt:/www/conf/vhost.map<br />
<br />
# ���� ���� alias���� ó���Ѵ�<br />
RewriteCond  %{REQUEST_URI}               !^/icons/<br />
RewriteCond  %{REQUEST_URI}               !^/cgi-bin/<br />
RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$<br />
# ���� ������ ������ ��<br />
RewriteCond  ${vhost:%1}                  ^(/.*)$<br />
RewriteRule  ^/(.*)$                      %1/docs/$1<br />
<br />
RewriteCond  %{REQUEST_URI}               ^/cgi-bin/<br />
RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$<br />
RewriteCond  ${vhost:%1}                  ^(/.*)$<br />
RewriteRule  ^/(.*)$                      %1/cgi-bin/$1
</code></p></div>

</div></div>
<div class="bottomlang">
<p><span>������ ���: </span><a href="../en/vhosts/mass.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="../fr/vhosts/mass.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
<a href="../ko/vhosts/mass.html" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="../tr/vhosts/mass.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/trunk/vhosts/mass.html';
(function(w, d) {
    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
        d.write('<div id="comments_thread"><\/div>');
        var s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
    }
    else {
        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
    }
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2013 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/quickreference.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
//--><!]]></script>
</body></html>