File: //usr/local/apache/manual/urlmapping.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>URL�� ��Ͻý��� ��ġ�� ���ϱ� - 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="<-" alt="<-" src="./images/left.gif" /></a></div>
<div id="path">
<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.4</a></div><div id="page-content"><div id="preamble"><h1>URL�� ��Ͻý��� ��ġ�� ���ϱ�</h1>
<div class="toplang">
<p><span>������ ���: </span><a href="./en/urlmapping.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./fr/urlmapping.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="./ja/urlmapping.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/urlmapping.html" title="Korean"> ko </a> |
<a href="./tr/urlmapping.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div>
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
�ֱٿ� ����� ���� ���� ������ ����ϼ���.</div>
<p>�� ������ ��û�� URL�� ������ ����ġ�� ��� ������
���� ��Ͻý��ۻ� ��ġ�� ã��� �����Ѵ�.</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="#related">���õ� ��� ���þ��</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#documentroot">DocumentRoot</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#outside">DocumentRoot �ۿ� �ִ� ��ϵ�</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#user">���� ���丮</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#redirect">URL ����̷���(Redirection)</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#proxy">����Ͻ�(Reverse Proxy)</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#rewrite">��ۼ� ���� (Rewriting Engine)</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#notfound">File Not Found</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="related" id="related">���õ� ��� ���þ��</a></h2>
<table class="related"><tr><th>���õ� ���</th><th>���õ� ���þ�</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_alias.html">mod_alias</a></code></li><li><code class="module"><a href="./mod/mod_proxy.html">mod_proxy</a></code></li><li><code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code></li><li><code class="module"><a href="./mod/mod_userdir.html">mod_userdir</a></code></li><li><code class="module"><a href="./mod/mod_speling.html">mod_speling</a></code></li><li><code class="module"><a href="./mod/mod_vhost_alias.html">mod_vhost_alias</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_alias.html#alias">Alias</a></code></li><li><code class="directive"><a href="./mod/mod_alias.html#aliasmatch">AliasMatch</a></code></li><li><code class="directive"><a href="./mod/mod_speling.html#checkspelling">CheckSpelling</a></code></li><li><code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></code></li><li><code class="directive"><a href="./mod/core.html#errordocument">ErrorDocument</a></code></li><li><code class="directive"><a href="./mod/core.html#options">Options</a></code></li><li><code class="directive"><a href="./mod/mod_proxy.html#proxypass">ProxyPass</a></code></li><li><code class="directive"><a href="./mod/mod_proxy.html#proxypassreverse">ProxyPassReverse</a></code></li><li><code class="directive"><a href="./mod/mod_proxy.html#proxypassreversecookiedomain">ProxyPassReverseCookieDomain</a></code></li><li><code class="directive"><a href="./mod/mod_proxy.html#proxypassreversecookiepath">ProxyPassReverseCookiePath</a></code></li><li><code class="directive"><a href="./mod/mod_alias.html#redirect">Redirect</a></code></li><li><code class="directive"><a href="./mod/mod_alias.html#redirectmatch">RedirectMatch</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewritecond">RewriteCond</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewritematch">RewriteMatch</a></code></li><li><code class="directive"><a href="./mod/mod_alias.html#scriptalias">ScriptAlias</a></code></li><li><code class="directive"><a href="./mod/mod_alias.html#scriptaliasmatch">ScriptAliasMatch</a></code></li><li><code class="directive"><a href="./mod/mod_userdir.html#userdir">UserDir</a></code></li></ul></td></tr></table>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="documentroot" id="documentroot">DocumentRoot</a></h2>
<p>��û�� ��� ����ġ�� � ���� ������� ���ϱ���
�⺻������ ��û�� URL-���(URL���� ȣ��Ʈ�� �Ʈ �ڿ�
������ �κ�)�� ������Ͽ��� ������ <code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></code> �ڿ� ��δ�. ����
<code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></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="outside" id="outside">DocumentRoot �ۿ� �ִ� ��ϵ�</a></h2>
<p>���� ��Ͻý��ۿ��� <code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></code> �Ʒ� ������ �κ��
������ ������ �ʿ䰡 �ִ�. ����ġ�� �� ��� �������� ����
����� �� �ִ�. ���н� �ý��ۿ��� �ɺ���ũ�� ����Ͽ�
��Ͻý���� �ٸ� �κ�� <code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></code> �Ʒ��� �� �� �ִ�.
����� ���� ����ġ�� �ش� ���丮�� <code class="directive"><a href="./mod/core.html#options">Options</a></code> ������
<code>FollowSymLinks</code>��
<code>SymLinksIfOwnerMatch</code>�� �ִ� ��쿡�� �ɺ���ũ��
����.</p>
<p>��, <code class="directive"><a href="./mod/mod_alias.html#alias">Alias</a></code>
���þ�� ��Ͻý���� Ư�� �κ�� �������� ���Ѵ�. ����
��� ����� ���ٸ�</p>
<div class="example"><p><code>Alias /docs /var/web</code></p></div>
<p>URL <code>http://www.example.com/docs/dir/file.html</code>��
<code>/var/web/dir/file.html</code>�� ������ �����Ѵ�.
������ ��ο� �ִ� ��� ���� CGI ��ũ��Ʈ�� ����ϴ� ���
�����ϰ�� <code class="directive"><a href="./mod/mod_alias.html#scriptalias">ScriptAlias</a></code>
���þ ���� ��� �Ѵ�.</p>
<p><code class="directive"><a href="./mod/mod_alias.html#aliasmatch">AliasMatch</a></code>��
<code class="directive"><a href="./mod/mod_alias.html#scriptaliasmatch">ScriptAliasMatch</a></code>
���þ�� ������ ����ǥ��ı�� ���� ��ġ�� ����Ͽ� ��
������ ������ �����ϴ�. ���� ���,</p>
<div class="example"><p><code>ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+)
/home/$1/cgi-bin/$2</code></p></div>
<p>�� <code>http://example.com/~user/cgi-bin/script.cgi</code>���
��û�� ��� <code>/home/user/cgi-bin/script.cgi</code>��
���ϰ�, �ش� ���� CGI ��ũ��Ʈ�� ����Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="user" id="user">���� ���丮</a></h2>
<p>���н� �ý���� �������� Ư�� ���� <em>user</em>��
Ȩ���丮�� <code>~user/</code>�� ��Ī�Ѵ�.
<code class="module"><a href="./mod/mod_userdir.html">mod_userdir</a></code> ��� �� ���� ������
Ȯ���Ͽ�, ����� ���� URL�� ������ �� ���� Ȩ���丮
�ȿ� �ִ� ���� �����Ѵ�.</p>
<div class="example"><p><code>http://www.example.com/~user/file.html</code></p></div>
<p>���Ȼ� ������ ���� Ȩ���丮�� ���� ������ �� �����
�ȵȴ�. ���� <code class="directive"><a href="./mod/mod_userdir.html#userdir">UserDir</a></code>
���þ�� ���� Ȩ���丮���� ���� ��ϵ�� ��� ���丮��
�����Ѵ�. �⺻ ���� <code>Userdir public_html</code>�� ����ϰ�
<code>/home/user/</code>�� <code>/etc/passwd</code>�� ������
���� Ȩ���丮���, ���� URL�� ���
<code>/home/user/public_html/file.html</code>�� ���Ѵ�.</p>
<p>��, <code>Userdir</code> ���þ�� <code>/etc/passwd</code>��
Ȩ���丮�� ��ġ�� �������ʴ� �ý���� ���� ���� �ٸ�
��¸� ����� �� �ִ�.</p>
<p>� ���� (���� ������ <code>%7e</code>�� ���ڵ��Ǵ�)
"~" ��ȣ�� �̻��Ͽ� �ٸ� ������ ���� ���丮�� ��Ÿ����
�;��Ѵ�. �� ���� mod_userdir�� ��������ʴ´�. ����
���� Ȩ���丮�� ��Ģ���� ������ ������ִٸ�, <code class="directive"><a href="./mod/mod_alias.html#aliasmatch">AliasMatch</a></code> ���þ ����Ͽ�
���ϴ� ȿ���� �� �� �ִ�. ���� ���, �����
<code>AliasMatch</code> ���þ ����ϸ�
<code>http://www.example.com/upages/user/file.html</code>��
<code>/home/user/public_html/file.html</code>�� ���Ѵ�:</p>
<div class="example"><p><code>AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*)
/home/$1/public_html/$2</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="redirect" id="redirect">URL ����̷���(Redirection)</a></h2>
<p>�տ��� ������ ���� ���þ�� ����ġ�� ��Ͻý���� Ư��
��ҿ� �ִ� ���� Ŭ��̾�Ʈ���� ������ �����. ����
������ ��û�� ����� �ٸ� URL�� �ִٰ� Ŭ��̾�Ʈ���� �˷��־�,
Ŭ��̾�Ʈ�� ���� �� URL�� ��û�ϵ��� ����� ��� ���� ����
�ִ�. �̸� <em>����̷���(redirection)</em>�̶�� �ϸ�,
<code class="directive"><a href="./mod/mod_alias.html#redirect">Redirect</a></code> ���þ
����Ѵ�. ���� ���, <code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></code> �Ʒ� <code>/foo/</code>
���丮�� ���� ���� <code>/bar/</code> ���丮�� �Ű�ٸ�
����� ���� Ŭ��̾�Ʈ�� ���ο� ��ġ�� ��û�ϵ��� �Ѵ�:</p>
<div class="example"><p><code>Redirect permanent /foo/
http://www.example.com/bar/</code></p></div>
<p>���� <code>www.example.com</code> ������ <code>/foo/</code>��
����ϴ� URL-��δ� <code>/foo/</code>�� <code>/bar/</code>��
�ٲ� URL�� ����̷��ǵȴ�. Ŭ��̾�Ʈ�� ���� �����ܿ� �
�ٸ� �����ε� ����̷����� �� �ִ�.</p>
<p>��, ����ġ�� �� ������ ��ۼ� ������ ����
<code class="directive"><a href="./mod/mod_alias.html#redirectmatch">RedirectMatch</a></code>
���þ �����Ѵ�. ���� ���, �ٸ� ��û�� �״�� �ΰ� ���Ʈ
Ȩ������ ���� ��û���� �ٸ� ���Ʈ�� ����̷����Ϸ���:</p>
<div class="example"><p><code>RedirectMatch permanent ^/$
http://www.example.com/startpage.html</code></p></div>
<p>�ӽ÷� ���Ʈ�� ��� ������ �ٸ� ���Ʈ�� Ư�� ������
����̷����Ϸ���:</p>
<div class="example"><p><code>RedirectMatch temp .*
http://othersite.example.com/startpage.html</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="proxy" id="proxy">����Ͻ�(Reverse Proxy)</a></h2>
<p>����ġ�� �ٸ� ������ �ִ� ������ ������ URL �������� ������
�� �ִ�. �� ��� �������� ���� �������� ������ �����ͼ�
Ŭ��̾�Ʈ���� �����ϴ� ��Ͻ� ������ ���� �����ϱ���� �̷�
���� <em>����Ͻ�(reverse proxying)</em>��� �Ѵ�. Ŭ��̾�Ʈ��
��忡�� ����Ͻ� ������ ������ �����ִ� ��ó�� ���̹Ƿ� �Ϲ�
��Ͻÿʹ� �ٸ���.</p>
<p>�Ʒ� �������� Ŭ��̾�Ʈ�� <code>/foo/</code>�� �ִ� ������
��û�ϸ�, ������ <code>internal.example.com</code>��
<code>/bar/</code> ���丮���� ������ �����ͼ� ������ ��ġ
������ �־��� ��ó�� Ŭ��̾�Ʈ���� ������.</p>
<div class="example"><p><code>
ProxyPass /foo/ http://internal.example.com/bar/<br />
ProxyPassReverse /foo/ http://internal.example.com/bar/
</code></p></div>
<p><code class="directive"><a href="./mod/mod_proxy.html#proxypass">ProxyPass</a></code>�� ������
������ ������ ���������� �����ϸ�, <code class="directive"><a href="./mod/mod_proxy.html#proxypassreverse">ProxyPassReverse</a></code> ���þ��
<code>internal.example.com</code>�� ������ ����̷���� ��ۼ��Ͽ�
����̷���� ��� ������ ������ ���丮�� ����Ű���� �Ѵ�.
��, <code class="directive"><a href="./mod/mod_proxy.html#proxypassreversecookiedomain">ProxyPassReverseCookieDomain</a></code>��
<code class="directive"><a href="./mod/mod_proxy.html#proxypassreversecookiedomain">ProxyPassReverseCookieDomain</a></code>��
���� ������ ���� ������ ���� ��Ű�� ��ۼ��Ѵ�.</p>
<p>���� ���� �ȿ� �ִ� ��ũ�� ��ۼ���� ����� ����϶�.
<code>internal.example.com</code>�� ���� ���븵ũ�� Ŭ��̾�Ʈ��
��Ͻü����� �ƴ϶� <code>internal.example.com</code>���� ����
��û�ϰ� �Ѵ�. ����ڰ� ���� <a href="http://apache.webthing.com/mod_proxy_html/">mod_proxy_html</a>
��� ����Ͽ� HTML�� XHTML�� �ִ� ��ũ�� ��ۼ��� �� �ִ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="rewrite" id="rewrite">��ۼ� ���� (Rewriting Engine)</a></h2>
<p>�� ������ ġȯ�� �ʿ��Ҷ� <code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code>��
��ۼ� ������ ����� �ȴ�. �� ���� ���þ�� ���� ������
Ŭ��̾�Ʈ�� IP �ּ� �� ��û�� Ư¡�� ������ ��� �ִ�
���� ������� ���� �� �ִ�. ��, mod_rewrite�� ��û��
��� ó����� ���ϱ��� �ܺ� �����ͺ��̽� ���̳�
��α��� ����� �� �ִ�. ��ۼ� ������ ������ �ٷ� ��
���� ��, ��, ���� ����̷��� (alias), �ܺ� ����̷���,
��Ͻ�, ��θ� �����Ѵ�. mod_rewrite�� ����ϴ� ��� ����
<a href="misc/rewriteguide.html">URL ���ۼ� ��ħ��</a>����
�����Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="notfound" id="notfound">File Not Found</a></h2>
<p>�ᱹ ��û�� URL�� ���ϴ� ���� ��Ͻý��ۿ��� ã��
���� ���̴�. ���� ���� ����� �ִ�. � ��� ������
�ٸ� ������ �Ű�� ������ �� �ִ�. �� ��� Ŭ��̾�Ʈ����
<a href="#redirect">URL ����̷���</a>���� �ڿ��� ���ο�
��ġ�� �˷��ִ� ���� ���� ����. ���� �ڿ��� �Űܵ�
������ �ϸ�ũ�� ��ũ�� ��� ��ȿ�ϴ�.</p>
<p>"File Not Found" ������ �ٸ� �Ϲ���� ����� ������
���� Ȥ�� HTML ��ũ�� URL�� �߸� �Էµ� ���̴�. ����ġ��
<code class="module"><a href="./mod/mod_speling.html">mod_speling</a></code> (������ Ʋ���� �ʾ��) ����
�̿� ���� ������ ���´�. �� ��� ����ϸ� "File Not Found"
������ ���ϴ� ��� ���� ��ϸ� ���� �ڿ��� ã�´�.
���� �߰��ϸ� mod_speling�� Ŭ��̾�Ʈ�� �ùٸ� ��ġ��
HTTP ����̷����Ѵ�. "����" ���� ������ �ִٸ�
Ŭ��̾�Ʈ���� ���� ������.</p>
<p>mod_speling�� Ư� ������ ���� ��ҹ��ڸ� ��������ʰ�
��ϸ� ���ϴ� ���̴�. ���� ���н� ��Ͻý��۰� URL��
��ҹ��� ������ ������ϴ� ���ڰ� �ִ� �ý��ۿ� �����
�ȴ�. ���� mod_speling�� ��� URL�� ���ľ��Ѵٸ�, "�߸���"
��û������ URL ����̷��ǰ� Ŭ��̾�Ʈ�� ���ο� ��û��
�Ͼ�Ƿ� ������ �δ�� �ȴ�.</p>
<p>ã�� �õ��� ��� �����ϸ� ����ġ�� HTTP status code 404
(file not found) ���������� ������. �� ������ ����
<code class="directive"><a href="./mod/core.html#errordocument">ErrorDocument</a></code> ���þ��
�����ϸ�, <a href="custom-error.html">������� ���� ����</a>
������ ����Ͽ� ��������� �� �ִ�.</p>
</div></div>
<div class="bottomlang">
<p><span>������ ���: </span><a href="./en/urlmapping.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./fr/urlmapping.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="./ja/urlmapping.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/urlmapping.html" title="Korean"> ko </a> |
<a href="./tr/urlmapping.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </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&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/urlmapping.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>