Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /usr/local/apache/manual/vhosts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/apache/manual/vhosts/mass.html.ko.euc-kr
<?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>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>�뷮�� ����ȣ��Ʈ�� �������� �����ϱ� - Apache HTTP Server Version 2.4</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.min.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/directives.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.4</p>
<img alt="" src="../images/feather.png" /></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.4</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"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><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><h3>���</h3><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 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 Libera.chat, or sent to our <a href="https://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/2.4/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 2024 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="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>

Spamworldpro Mini