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
7      -->
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" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
12<script src="/style/scripts/prettify.min.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body id="manual-page"><div id="page-header">
17<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p>
18<p class="apache">Apache HTTP Server Version 2.4</p>
19<img alt="" src="/images/feather.gif" /></div>
20<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
21<div id="path">
22<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.4</a> &gt; <a href="./">����ȣ��Ʈ</a></div><div id="page-content"><div id="preamble"><h1>�뷮�� ����ȣ��Ʈ�� �������� �����ϱ�</h1>
23<div class="toplang">
24<p><span>������ ���: </span><a href="/en/vhosts/mass.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
25<a href="/fr/vhosts/mass.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
26<a href="/ko/vhosts/mass.html" title="Korean">&nbsp;ko&nbsp;</a> |
27<a href="/tr/vhosts/mass.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
28</div>
29<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
30            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
31
32
33    <p>�� ������ ����ġ 1.3���� �뷮�� ����ȣ��Ʈ�� ȿ��������
34    �����ϴ� ����� �����Ѵ�. 
35    </p>
36
37</div>
38<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#motivation">����</a></li>
39<li><img alt="" src="/images/down.gif" /> <a href="#overview">����</a></li>
40<li><img alt="" src="/images/down.gif" /> <a href="#simple">������ ���� ����ȣ��Ʈ</a></li>
41<li><img alt="" src="/images/down.gif" /> <a href="#homepages">�������� ȣ��Ʈ�ϴ� Ȩ������ �ý���</a></li>
42<li><img alt="" src="/images/down.gif" /> <a href="#combinations">�� ������ ���� ����ȣ��Ʈ
43    �ý��� ����ϱ�</a></li>
44<li><img alt="" src="/images/down.gif" /> <a href="#ipbased">�� ȿ������ IP��� ����ȣ��Ʈ</a></li>
45<li><img alt="" src="/images/down.gif" /> <a href="#oldversion">����ġ ���� ���� ����ϱ�</a></li>
46<li><img alt="" src="/images/down.gif" /> <a href="#simple.rewrite"><code>mod_rewrite</code>��
47    ����� ������ ���� ����ȣ��Ʈ</a></li>
48<li><img alt="" src="/images/down.gif" /> <a href="#homepages.rewrite"><code>mod_rewrite</code>��
49    ����� Ȩ������ �ý���</a></li>
50<li><img alt="" src="/images/down.gif" /> <a href="#xtra-conf">������ ����ȣ��Ʈ ��������
51    ����ϱ�</a></li>
52</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
53<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
54<div class="section">
55<h2><a name="motivation" id="motivation">����</a></h2>
56
57    <p>����� <code>httpd.conf</code>�� ������ ���� ���� �����
58    <code>&lt;VirtualHost&gt;</code> ���ǵ��� ���� �ִٸ� ���⼭
59    �����ϴ� ����� ������ �� ���̴�:</p>
60
61<div class="example"><p><code>
62NameVirtualHost 111.22.33.44<br />
63&lt;VirtualHost 111.22.33.44&gt;<br />
64<span class="indent">
65    ServerName                 www.customer-1.com<br />
66    DocumentRoot        /www/hosts/www.customer-1.com/docs<br />
67    ScriptAlias  /cgi-bin/  /www/hosts/www.customer-1.com/cgi-bin<br />
68</span>
69&lt;/VirtualHost&gt;<br />
70&lt;VirtualHost 111.22.33.44&gt;<br />
71<span class="indent">
72    ServerName                 www.customer-2.com<br />
73    DocumentRoot        /www/hosts/www.customer-2.com/docs<br />
74    ScriptAlias  /cgi-bin/  /www/hosts/www.customer-2.com/cgi-bin<br />
75</span>
76&lt;/VirtualHost&gt;<br />
77# �ٺ� �ٺ� �ٺ�<br />
78&lt;VirtualHost 111.22.33.44&gt;<br />
79<span class="indent">
80    ServerName                 www.customer-N.com<br />
81    DocumentRoot        /www/hosts/www.customer-N.com/docs<br />
82    ScriptAlias  /cgi-bin/  /www/hosts/www.customer-N.com/cgi-bin<br />
83</span>
84&lt;/VirtualHost&gt;
85</code></p></div>
86
87    <p>�⺻ ������ ������ <code>&lt;VirtualHost&gt;</code>
88    ���� ��θ� �������� ó���ϵ��� ��ü�ϴ� ���̴�.
89    �׷��� ���� ������ �ִ�:</p>
90
91    <ol>
92      <li>���������� �۾����� ����ġ�� ���� �����ϰ� �޸���
93      ��� ����Ѵ�.</li>
94
95      <li>����ȣ��Ʈ�� �߰��ϱ����� ���Ͻý��ۿ� �����
96      ���丮�� ����� DNS�� �׸��� �߰��ϱ⸸ �ϸ�ȴ�. ��,
97      ����ġ�� �缳���ϰ� ������� �ʿ䰡 ���.</li>
98    </ol>
99
100    <p>������ �� ����ȣ��Ʈ���� �ٸ� �α������� ����� �� ��ٴ�
101    ���̴�. �׷��� �ſ� ���� ����ȣ��Ʈ�� ����Ѵٸ� ���ϱ���ڸ�
102    �� ������⶧���� ���� �ٸ� �α������� ����� �� ���. ��������
103    fifo�� �α׸� ������, �޴� ���� �α׸� ó���Ͽ� ������
104    ����� (��� ���� ���� ���� �ִ�) �� ����.</p>
105
106</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
107<div class="section">
108<h2><a name="overview" id="overview">����</a></h2>
109
110    <p>����ȣ��Ʈ�� IP �ּҿ� HTTP ��û�� <code>Host:</code>
111    ��� ������ �����Ѵ�. �⺻������ �뷮��
112    ���� ����ȣ��Ʈ ����� �ڵ����� ����ȣ��Ʈ ������ ��û��
113    ���ϰ�ο� �����Ѵ�. �̴� ��κ� <code class="module"><a href="/mod/mod_vhost_alias.html">mod_vhost_alias</a></code>��
114    ����Ͽ� ���� �ذ��� �� ������, ����ġ 1.3.6 ���ϸ� ����Ѵٸ�
115    <code class="module"><a href="/mod/mod_rewrite.html">mod_rewrite</a></code>�� ����ؾ� �Ѵ�. �� �� ���
116    ��� �⺻������ ������ ���Ե��� �ʴ´�. �� ����� ����Ϸ���
117    ����ġ�� �����ϰ� �������Ҷ� �����ؾ� �Ѵ�.</p>
118
119    <p>���� ����ȣ��Ʈ�� �Ϲ����� ����ȣ��Ʈó�� ���̰��Ϸ���
120    ���������� `�ӿ���' �Ѵ�. ���� �߿��� ���� ����ġ�� �ڱ�����
121    URL ���� ���鶧 ����� �������̴�. ��������
122    <code>ServerName</code> ���þ�� �����ϸ�, CGI����
123    <code>SERVER_NAME</code> ȯ�溯���� �־����.  ������ ����
124    �������� <code class="directive"><a href="/mod/core.html#usecanonicalname">UseCanonicalName</a></code> ������ �޷ȴ�.
125    <code>UseCanonicalName Off</code>�̸� ��û�� <code>Host:</code>
126    ��� ������ �������� �ȴ�. <code>UseCanonicalName DNS</code>�̸�
127    ����ȣ��Ʈ�� IP �ּҸ� ��DNS �˻��Ͽ� �������� �˾Ƴ���.
128    ���ڴ� �̸���� ���� ����ȣ��Ʈ���� ����ϰ�, ���ڴ� IP���
129    ����ȣ��Ʈ���� ����Ѵ�. <code>Host:</code> ����� ��ų�
130    DNS �˻��� �����Ͽ� ����ġ�� �������� �˾Ƴ��� ���ϸ�
131    <code>ServerName</code>���� ������ ���� ��� ����Ѵ�.</p>
132
133    <p>�ٸ� `����' ���� (<code>DocumentRoot</code>�� �����ϸ�,
134    CGI���� <code>DOCUMENT_ROOT</code> ȯ�溯���� �־�����)
135    ������Ʈ�̴�. �Ϲ����� ��� core ����� �� ������ ����Ͽ�
136    URI�� �ش��ϴ� ���ϸ��� ã����, ������ ���� ����ȣ������ �Ҷ��� �ٸ�
137    ����� (<code>mod_vhost_alias</code>�� <code>mod_rewrite</code>)
138    �ٸ� ������� �̷� �۾��� �Ѵ�. �� ��� ���
139    <code>DOCUMENT_ROOT</code> ȯ�溯���� ������� �����Ƿ�
140    CGI�� SSI ������ �� ���� ����Ѵٸ� �߸�� ��� ���� ��
141    �ִ�.</p>
142
143</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
144<div class="section">
145<h2><a name="simple" id="simple">������ ���� ����ȣ��Ʈ</a></h2>
146
147    <p>�� <a href="#motivation">����</a> ���� ����ȣ��Ʈ
148    ������ <code>mod_vhost_alias</code>�� ����Ͽ� �� �Ϲ�������
149    �����ߴ�.</p>
150
151<div class="example"><p><code>
152# Host: ������� �������� �˾Ƴ���<br />
153UseCanonicalName Off<br />
154<br />
155# ù��° �ʵ带 ����Ͽ� �� �α׸� ����ȣ��Ʈ���� ���� �� �ִ�<br />
156LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />
157CustomLog logs/access_log vcommon<br />
158<br />
159# ��û�� ó���ϱ����� ���ϸ� �������� �����Ѵ�<br />
160VirtualDocumentRoot /www/hosts/%0/docs<br />
161VirtualScriptAlias  /www/hosts/%0/cgi-bin
162</code></p></div>
163
164    <p>�� �������� <code>UseCanonicalName Off</code>��
165    <code>UseCanonicalName DNS</code>�� �����ϱ⸸ �ϸ� IP���
166    ����ȣ��Ʈ�� �ȴ�. ����ȣ��Ʈ�� IP �ּҸ� ������
167    ���ϸ� �߰��� �������� �� �� �ִ�.</p>
168
169</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
170<div class="section">
171<h2><a name="homepages" id="homepages">�������� ȣ��Ʈ�ϴ� Ȩ������ �ý���</a></h2>
172
173    <p>ISP Ȩ������ ������ ���� ���� ������ �����ߴ�. ���� ��
174    ������ ������ ����ϸ� <code>www.user.isp.com</code>�� ������
175    <code>/home/user/</code>�� �δ� ������ �������� �Ϻθ� ������
176    ���ϸ��� ���� �� �ִ�. �� ������
177    <code>cgi-bin</code>�� �� ����ȣ��Ʈ�� ��� �������ʰ�
178    ��� ����ȣ��Ʈ�� ���� ����Ѵ�.</p>
179
180<div class="example"><p><code>
181# �⺻���� ������ ���� ����. �׸���<br />
182<br />
183# ���ϸ� �������� �Ϻθ� �����Ѵ�<br />
184VirtualDocumentRoot /www/hosts/%2/docs<br />
185<br />
186# �ϳ��� cgi-bin ���丮<br />
187ScriptAlias  /cgi-bin/  /www/std-cgi/<br />
188</code></p></div>
189
190    <p><code class="module"><a href="/mod/mod_vhost_alias.html">mod_vhost_alias</a></code> �������� �� ������
191    <code>VirtualDocumentRoot</code> ������ ���� �ִ�.</p>
192
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="combinations" id="combinations">�� ������ ���� ����ȣ��Ʈ
196    �ý��� ����ϱ�</a></h2>
197
198    <p>�� ������ ������ ���� ����ġ�� �Ϲ�����
199    <code>&lt;VirtualHost&gt;</code> ���þ ����Ͽ� ����
200    ����ȣ��Ʈ ������ ������ ������ �� �ִ�. ���� ���, ������
201    ���� ������ Ȩ������ ���� IP �ּ� �Ѱ�, �������
202    ������ �ٸ� IP �ּ� �Ѱ��� �ο��Ѵ�. ���� ����ó��
203    <code>&lt;VirtualHost&gt;</code> ���� ���ǿ� ��� ���� ����
204    �ִ�.</p>
205
206<div class="example"><p><code>
207UseCanonicalName Off<br />
208<br />
209LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />
210<br />
211&lt;Directory /www/commercial&gt;<br />
212<span class="indent">
213    Options FollowSymLinks<br />
214    AllowOverride All<br />
215</span>
216&lt;/Directory&gt;<br />
217<br />
218&lt;Directory /www/homepages&gt;<br />
219<span class="indent">
220    Options FollowSymLinks<br />
221    AllowOverride None<br />
222</span>
223&lt;/Directory&gt;<br />
224<br />
225&lt;VirtualHost 111.22.33.44&gt;<br />
226<span class="indent">
227    ServerName www.commercial.isp.com<br />
228    <br />
229    CustomLog logs/access_log.commercial vcommon<br />
230    <br />
231    VirtualDocumentRoot /www/commercial/%0/docs<br />
232    VirtualScriptAlias  /www/commercial/%0/cgi-bin<br />
233</span>
234&lt;/VirtualHost&gt;<br />
235<br />
236&lt;VirtualHost 111.22.33.45&gt;<br />
237<span class="indent">
238    ServerName www.homepages.isp.com<br />
239    <br />
240    CustomLog logs/access_log.homepages vcommon<br />
241    <br />
242    VirtualDocumentRoot /www/homepages/%0/docs<br />
243    ScriptAlias         /cgi-bin/ /www/std-cgi/<br />
244</span>
245&lt;/VirtualHost&gt;
246</code></p></div>
247
248</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
249<div class="section">
250<h2><a name="ipbased" id="ipbased">�� ȿ������ IP��� ����ȣ��Ʈ</a></h2>
251
252    <p><a href="#simple">ù��° ��</a>���� ���� ������ ������
253    IP��� ����ȣ��Ʈ�� �ٲ� �� �ִٰ� ���ߴ�. ��������
254    �׷� ������ �� ��û���� DNS�� ã�ƾ��ϹǷ� �ſ� ��ȿ�����̴�.
255    �̸���� IP �ּҷ� ���Ͻý����� �����ϰ� ���� �������
256    �α׸� �����ϸ� ������ �ذ��� �� �ִ�. ����ġ�� ��������
257    �ٷ� �ʿ䰡 �������, DNS �˻��� ���� �ʰ� �ȴ�.</p>
258
259<div class="example"><p><code>
260# IP �ּҸ� ��DNS �˻��Ͽ� �������� �˾Ƴ���<br />
261UseCanonicalName DNS<br />
262<br />
263# �α׸� ���� �� �ֵ��� IP �ּҸ� �����Ѵ�<br />
264LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon<br />
265CustomLog logs/access_log vcommon<br />
266<br />
267# ���ϸ� IP �ּҸ� �����Ѵ�<br />
268VirtualDocumentRootIP /www/hosts/%0/docs<br />
269VirtualScriptAliasIP  /www/hosts/%0/cgi-bin<br />
270</code></p></div>
271
272</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
273<div class="section">
274<h2><a name="oldversion" id="oldversion">����ġ ���� ���� ����ϱ�</a></h2>
275
276    <p>�� ������ ����ġ ���� 1.3.6 ���Ŀ� ���Ե�
277    <code>mod_vhost_alias</code>�� ����Ѵ�.
278    <code>mod_vhost_alias</code>�� ��� ����ġ ������ ����Ѵٸ�
279    �̹� ���ߵ��� <code>mod_rewrite</code>�� ����Ͽ�, ��
280    Host:-������ ����ȣ��Ʈ����, ������ �� �ִ�.</p>
281
282    <p>�� �α׿� ���Ͽ� ������ ���� �ִ�. ����ġ 1.3.6����
283    �α���� ���þ� <code>%V</code>�� ���ԵǾ��, ���� 1.3.0
284    - 1.3.3���� �� ����� <code>%v</code> �ɼ��� ��� �ߴ�. �׷���
285    ���� 1.3.4���� �̷� ����� ���. � ����ġ �����
286    <code>.htaccess</code> ���Ͽ��� <code>UseCanonicalName</code>
287    ���þ ����� �� �����Ƿ� �α׿� �̻��� ������ ��ϵ� �� �ִ�.
288    �׷��Ƿ� ���� ���� ����� <code>%{Host}i</code> ���þ
289    ����Ͽ� <code>Host:</code> ����� ���� �α׿� ����� ���̴�.
290    ��, �� ����� <code>%V</code>�� ���������ʴ� <code>:port</code>��
291    �ڿ� �߰��� �� �ִ�.</p>
292
293</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
294<div class="section">
295<h2><a name="simple.rewrite" id="simple.rewrite"><code>mod_rewrite</code>��
296    ����� ������ ���� ����ȣ��Ʈ</a></h2>
297
298    <p>������ <a href="#simple">ù��° ��</a>�� ���� ���� �ϴ�
299    <code>httpd.conf</code> ���̴�. ó�� ����� ù��° ����
300    ���� ���������, ���� ������� ȣȯ���� <code>mod_rewrite</code>��
301    ������ ������ ���� �����Ǿ��. ������ ����� ���� �۾���
302    �ϴ� <code>mod_rewrite</code>�� �����Ѵ�.</p>
303
304    <p>Ư���� �����ؾ� �� ������ �ִ�. �⺻������
305    <code>mod_rewrite</code>�� (<code>mod_alias</code> ��) �ٸ�
306    URI �� ��� ���� ����ȴ�. �׷��� �ٸ� URI �� �����
307    ���� ������ ���� ����Ͽ� <code>mod_rewrite</code>�� �����ؾ� �Ѵ�.
308    ��, ���� ����ȣ��Ʈ���� <code>ScriptAlias</code>�� ����
309    ����� ���ؼ��� Ư���� �۾��� �ʿ��ϴ�.</p>
310
311<div class="example"><p><code>
312# Host: ������� �������� ��´�<br />
313UseCanonicalName Off<br />
314<br />
315# splittable logs<br />
316LogFormat "%{Host}i %h %l %u %t \"%r\" %s %b" vcommon<br />
317CustomLog logs/access_log vcommon<br />
318<br />
319&lt;Directory /www/hosts&gt;<br />
320<span class="indent">
321    # ScriptAlias ������ CGI ������ ������ �� ��⶧����<br />
322    # ���⿡ ExecCGI�� ����Ѵ�<br />
323    Options FollowSymLinks ExecCGI<br />
324</span>
325&lt;/Directory&gt;<br />
326<br />
327# ���� ����� �κ��̴�<br />
328<br />
329RewriteEngine On<br />
330<br />
331# Host: ������� ������ �������� ��ҹ��ڰ� �ڼ������� �� �ִ�<br />
332RewriteMap  lowercase  int:tolower<br />
333<br />
334## �Ϲ� ������ ���� ó���Ѵ�:<br />
335# Alias /icons/ �� �����ϵ��� - �ٸ� alias�� ���ؼ��� �ݺ�<br />
336RewriteCond  %{REQUEST_URI}  !^/icons/<br />
337# CGI�� �����ϵ���<br />
338RewriteCond  %{REQUEST_URI}  !^/cgi-bin/<br />
339# Ư���� �۾�<br />
340RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/docs/$1<br />
341<br />
342## ���� CGI�� ó���Ѵ� - MIME type�� �����ؾ� �Ѵ�<br />
343RewriteCond  %{REQUEST_URI}  ^/cgi-bin/<br />
344RewriteRule  ^/(.*)$  /www/hosts/${lowercase:%{SERVER_NAME}}/cgi-bin/$1  [T=application/x-httpd-cgi]<br />
345<br />
346# ��!
347</code></p></div>
348
349</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
350<div class="section">
351<h2><a name="homepages.rewrite" id="homepages.rewrite"><code>mod_rewrite</code>��
352    ����� Ȩ������ �ý���</a></h2>
353
354    <p>������ <a href="#homepages">�� ��</a>�� ���� ����
355    �Ѵ�.</p>
356
357<div class="example"><p><code>
358RewriteEngine on<br />
359<br />
360RewriteMap   lowercase  int:tolower<br />
361<br />
362# CGI�� �����ϵ���<br />
363RewriteCond  %{REQUEST_URI}  !^/cgi-bin/<br />
364<br />
365# RewriteRule�� �����ϵ��� ȣ��Ʈ���� �ùٸ��� �˻��Ѵ�<br />
366RewriteCond  ${lowercase:%{SERVER_NAME}}  ^www\.[a-z-]+\.isp\.com$<br />
367<br />
368# ����ȣ��Ʈ���� URI �տ� ���δ�<br />
369# [C]�� �� ��� ������ ���� ���ۼ��� �������� ���Ѵ�<br />
370RewriteRule  ^(.+)  ${lowercase:%{SERVER_NAME}}$1  [C]<br />
371<br />
372# ���� ���� ���ϸ��� �����<br />
373RewriteRule  ^www\.([a-z-]+)\.isp\.com/(.*) /home/$1/$2<br />
374<br />
375# ��ü CGI ���丮�� �����Ѵ�<br />
376ScriptAlias  /cgi-bin/  /www/std-cgi/
377</code></p></div>
378
379</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
380<div class="section">
381<h2><a name="xtra-conf" id="xtra-conf">������ ����ȣ��Ʈ ��������
382    ����ϱ�</a></h2>
383
384    <p>������ <code>mod_rewrite</code>�� ��� ����� ����Ͽ�
385    ������ ���������� ������ ����ȣ��Ʈ�� ������Ʈ�� �˾Ƴ���.
386    �� ���������� �� ������ ������ �ʿ��ϴ�.</p>
387
388    <p><code>vhost.map</code> ������ ������ ����:</p>
389
390<div class="example"><p><code>
391www.customer-1.com  /www/customers/1<br />
392www.customer-2.com  /www/customers/2<br />
393# ...<br />
394www.customer-N.com  /www/customers/N<br />
395</code></p></div>
396
397    <p><code>http.conf</code>�� ������ ����:</p>
398
399<div class="example"><p><code>
400RewriteEngine on<br />
401<br />
402RewriteMap   lowercase  int:tolower<br />
403<br />
404# ���������� �����Ѵ�<br />
405RewriteMap   vhost      txt:/www/conf/vhost.map<br />
406<br />
407# ���� ���� alias���� ó���Ѵ�<br />
408RewriteCond  %{REQUEST_URI}               !^/icons/<br />
409RewriteCond  %{REQUEST_URI}               !^/cgi-bin/<br />
410RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$<br />
411# ���� ������ ������ ��<br />
412RewriteCond  ${vhost:%1}                  ^(/.*)$<br />
413RewriteRule  ^/(.*)$                      %1/docs/$1<br />
414<br />
415RewriteCond  %{REQUEST_URI}               ^/cgi-bin/<br />
416RewriteCond  ${lowercase:%{SERVER_NAME}}  ^(.+)$<br />
417RewriteCond  ${vhost:%1}                  ^(/.*)$<br />
418RewriteRule  ^/(.*)$                      %1/cgi-bin/$1
419</code></p></div>
420
421</div></div>
422<div class="bottomlang">
423<p><span>������ ���: </span><a href="/en/vhosts/mass.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
424<a href="/fr/vhosts/mass.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
425<a href="/ko/vhosts/mass.html" title="Korean">&nbsp;ko&nbsp;</a> |
426<a href="/tr/vhosts/mass.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
427</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>
428<script type="text/javascript"><!--//--><![CDATA[//><!--
429var comments_shortname = 'httpd';
430var comments_identifier = 'http://httpd.apache.org/docs/2.4/vhosts/mass.html';
431(function(w, d) {
432    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
433        d.write('<div id="comments_thread"><\/div>');
434        var s = d.createElement('script');
435        s.type = 'text/javascript';
436        s.async = true;
437        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
438        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
439    }
440    else { 
441        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
442    }
443})(window, document);
444//--><!]]></script></div><div id="footer">
445<p class="apache">Copyright 2014 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>
446<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.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[//><!--
447if (typeof(prettyPrint) !== 'undefined') {
448    prettyPrint();
449}
450//--><!]]></script>
451</body></html>