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