| <?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>mod_alias - Apache HTTP Server Version 2.5</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> |
| <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.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.5</a> > <a href="./">¸ðµâ</a></div> |
| <div id="page-content"> |
| <div id="preamble"><h1>¾ÆÆÄÄ¡ ¸ðµâ mod_alias</h1> |
| <div class="toplang"> |
| <p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../en/mod/mod_alias.html" hreflang="en" rel="alternate" title="English"> en </a> | |
| <a href="../es/mod/mod_alias.html" hreflang="es" rel="alternate" title="Español"> es </a> | |
| <a href="../fr/mod/mod_alias.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | |
| <a href="../ja/mod/mod_alias.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | |
| <a href="../ko/mod/mod_alias.html" title="Korean"> ko </a> | |
| <a href="../tr/mod/mod_alias.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> |
| </div> |
| <div class="outofdate">ÀÌ ¹®¼´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù. |
| ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼¸¦ Âü°íÇϼ¼¿ä.</div> |
| <table class="module"><tr><th><a href="module-dict.html#Description">¼³¸í:</a></th><td>ÆÄÀϽýºÅÛÀÇ ´Ù¸¥ ºÎºÐµéÀ» ¹®¼ °èÃþ±¸Á¶¿¡ Æ÷ÇÔÇÏ°í, |
| URL ¸®´ÙÀÌ·º¼ÇÀ» Á¦°øÇÑ´Ù</td></tr> |
| <tr><th><a href="module-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="module-dict.html#ModuleIdentifier">¸ðµâ¸í:</a></th><td>alias_module</td></tr> |
| <tr><th><a href="module-dict.html#SourceFile">¼Ò½ºÆÄÀÏ:</a></th><td>mod_alias.c</td></tr></table> |
| <h3>¿ä¾à</h3> |
| |
| <p>ÀÌ ¸ðµâÀÌ Á¦°øÇÏ´Â Áö½Ã¾îµéÀ» »ç¿ëÇÏ¿© ¼¹ö°¡ ¿äûÀ» |
| ¹ÞÀ»¶§ URLÀ» ¼öÁ¤Çϰųª Á¶ÀÛÇÒ ¼ö ÀÖ´Ù. <code class="directive"><a href="#alias">Alias</a></code>¿Í <code class="directive"><a href="#scriptalias">ScriptAlias</a></code> Áö½Ã¾î´Â URLÀ» |
| ÆÄÀϽýºÅÛ °æ·Î·Î ´ëÀÀÇÑ´Ù. ±×·¡¼ <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ¾Æ·¡¿¡ ¾ø´Â ³»¿ëÀ» |
| À¥À¸·Î ¼ºñ½ºÇÒ ¼ö ÀÖ´Ù. ¶Ç, <code class="directive"><a href="#scriptalias">ScriptAlias</a></code> Áö½Ã¾î´Â ÁöÁ¤ÇÑ |
| µð·ºÅ丮¿¡ CGI ½ºÅ©¸³Æ®¹Û¿¡ ¾ø´Ù°í ¾Ë¸°´Ù.</p> |
| |
| <p><code class="directive"><a href="#redirect">Redirect</a></code> Áö½Ã¾î´Â |
| Ŭ¶óÀ̾ðÆ®¿¡°Ô ´Ù¸¥ URL·Î »õ·Î¿î ¿äûÀ» Çϵµ·Ï Áö½ÃÇÑ´Ù. |
| ÀÚ¿øÀ» »õ·Î¿î Àå¼Ò·Î ¿Å±ä °æ¿ì ÀÚÁÖ »ç¿ëÇÑ´Ù.</p> |
| |
| <p><code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>´Â °£´ÜÇÑ URL Á¶ÀÛÀ» À§ÇØ |
| ¼³°èµÇ¾ú´Ù. ÁúÀǹ®ÀÚ¿ Á¶ÀÛ°ú °°Àº º¹ÀâÇÑ ÀÛ¾÷Àº |
| <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>°¡ Á¦°øÇÏ´Â ±â´ÉÀ» ÀÌ¿ëÇ϶ó.</p> |
| |
| </div> |
| <div id="quickview"><h3>ÁÖÁ¦</h3> |
| <ul id="topics"> |
| <li><img alt="" src="../images/down.gif" /> <a href="#order">ó¸® ¼ø¼</a></li> |
| </ul><h3 class="directives">Áö½Ã¾îµé</h3> |
| <ul id="toc"> |
| <li><img alt="" src="../images/down.gif" /> <a href="#alias">Alias</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#aliasmatch">AliasMatch</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#redirect">Redirect</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#redirectmatch">RedirectMatch</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#redirectpermanent">RedirectPermanent</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#redirectrelative">RedirectRelative</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#redirecttemp">RedirectTemp</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#scriptalias">ScriptAlias</a></li> |
| <li><img alt="" src="../images/down.gif" /> <a href="#scriptaliasmatch">ScriptAliasMatch</a></li> |
| </ul> |
| <h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&list_id=144532&product=Apache%20httpd-2&query_format=specific&order=changeddate%20DESC%2Cpriority%2Cbug_severity&component=mod_alias">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&component=mod_alias">Report a bug</a></li></ul><h3>Âü°í</h3> |
| <ul class="seealso"> |
| <li><code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code></li> |
| <li><a href="../urlmapping.html">URLÀ» ÆÄÀϽýºÅÛ¿¡ ´ëÀÀ</a></li> |
| <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="order" id="order">ó¸® ¼ø¼</a> <a title="Permanent link" href="#order" class="permalink">¶</a></h2> |
| |
| <p>¼·Î ´Ù¸¥ »ç¿ëÀå¼Ò¿¡¼ Alias¿Í Redirect¸¦ »ç¿ëÇÏ¸é ´Ù¸¥ Áö½Ã¾î¿Í |
| °°ÀÌ Ç¥ÁØ <a href="../sections.html#mergin">°áÇÕ ¹æ¹ý</a>¿¡ |
| µû¶ó ó¸®ÇÑ´Ù. ±×·¯³ª °°Àº »ç¿ëÀå¼Ò¿¡ (¿¹¸¦ µé¾î, °°Àº <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ¼½¼Ç¿¡) |
| Alias¿Í Redirect¸¦ »ç¿ëÇÏ¸é ¾Æ·¡ ¼ø¼´ë·Î ó¸®ÇÑ´Ù.</p> |
| |
| <p>¸ÕÀú ¸ðµç Redirect¸¦ ó¸®ÇÑ ÈÄ Alias¸¦ ó¸®ÇÑ´Ù. ±×·¡¼ |
| <code class="directive"><a href="#redirect">Redirect</a></code>³ª <code class="directive"><a href="#redirectmatch">RedirectMatch</a></code>¿¡ ÇØ´çÇÏ´Â ¿äûÀº |
| Àý´ë·Î AliasÇÏÁö ¾Ê´Â´Ù. ±×¸®°í Alias¿Í Redirect´Â ¼³Á¤ÆÄÀÏ¿¡¼ |
| ù¹ø°·Î ³ª¿À´Â °ÍÀ» »ç¿ëÇÑ´Ù.</p> |
| |
| <p>±×·¡¼ ¿©·¯ Áö½Ã¾î°¡ µ¿ÀÏÇÑ ÇÏÀ§°æ·Î¿¡ ÇØ´çÇÏ´Â °æ¿ì ¸ðµç |
| Áö½Ã¾î¸¦ Àû¿ëÇϱâÀ§Çؼ´Â °¡Àå »ó¼¼ÇÑ °æ·Î¸¦ ¸ÕÀú »ç¿ëÇØ¾ß ÇÑ´Ù. |
| ¿¹¸¦ µé¾î, ´ÙÀ½ ¼³Á¤Àº ÀǵµÇÑ´ë·Î µ¿ÀÛÇÑ´Ù:</p> |
| |
| <div class="example"><p><code> |
| Alias /foo/bar /baz<br /> |
| Alias /foo /gaq |
| </code></p></div> |
| |
| <p>±×·¯³ª À§ÀÇ µÎ Áö½Ã¾î ¼ø¼¸¦ ¹Ù²Ù¸é <code>/foo/bar</code> |
| <code class="directive"><a href="#alias">Alias</a></code> ÀÌÀü¿¡ |
| <code>/foo</code> <code class="directive"><a href="#alias">Alias</a></code>¸¦ |
| Àû¿ëÇϹǷΠÇ×»ó µÎ¹ø° Áö½Ã¾î¸¦ ¹«½ÃÇÑ´Ù.</p> |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="Alias" id="Alias">Alias</a> <a name="alias" id="alias">Áö½Ã¾î</a> <a title="Permanent link" href="#alias" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>URLÀ» ƯÁ¤ ÆÄÀϽýºÅÛ Àå¼Ò·Î ´ëÀÀÇÑ´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>Alias <var>URL-path</var> |
| <var>file-path</var>|<var>directory-path</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| |
| <p><code class="directive">Alias</code> Áö½Ã¾î¸¦ »ç¿ëÇϸé ÆÄÀϽýºÅÛ¿¡¼ |
| <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> ¹Û¿¡ ÀÖ´Â |
| ¹®¼µµ ¼ºñ½ºÇÒ ¼ö ÀÖ´Ù. <var>url-path</var>·Î ½ÃÀÛÇÏ´Â |
| (%·Î ÀÎÄÚµùµÈ) URLÀ» <var>directory-path</var>·Î ½ÃÀÛÇÏ´Â |
| ÆÄÀÏ¿¡ ´ëÀÀÇÑ´Ù.</p> |
| |
| <div class="example"><h3>¿¹Á¦:</h3><p><code> |
| Alias /image /ftp/pub/image |
| </code></p></div> |
| |
| <p>http://myserver/image/foo.gif¸¦ ¿äûÇÏ¸é ¼¹ö´Â |
| /ftp/pub/image/foo.gif ÆÄÀÏÀ» ³Ñ°ÜÁØ´Ù.</p> |
| |
| <p><var>url-path</var> ³¡¿¡ /¸¦ Æ÷ÇÔÇϸé, URL ³¡¿¡ /¸¦ |
| »ç¿ëÇؾ߸¸ ¿µÇâÀÌ ÀÖÀ½À» ÁÖÀÇÇ϶ó. Áï, <code>Alias /icons/ |
| /usr/local/apache/icons/</code> ¼³Á¤Àº url <code>/icons</code>¿Í |
| °ü°è°¡ ¾ø´Ù.</p> |
| |
| <p>´ëÀÀÀÇ <em>´ë»ó</em>À» Æ÷ÇÔÇÏ´Â ¿©·¯ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ¼½¼ÇÀÌ |
| ÇÊ¿äÇÒÁöµµ ¸ð¸¥´Ù. ÀÌ Áö½Ã¾î´Â <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ¼½¼ÇÀ» °Ë»çÇϱâ Àü¿¡ |
| ó¸®ÇϹǷÎ, ´ëÀÀÀÇ ´ë»ó¸¸ ¼½¼ÇÀÇ ¿µÇâÀ» ¹Þ´Â´Ù. (±×·¯³ª |
| <code class="directive"><a href="../mod/core.html#location"><Location></a></code> |
| ¼½¼ÇÀº ÀÌ Áö½Ã¾î¸¦ ó¸®Çϱâ Àü¿¡ Çѹø¸¸ °Ë»çÇϹǷΠÁöÁ¤ÇÑ |
| URL ÀÌÇÏ Àüü¿¡ ¿µÇâÀ» ÁØ´Ù.)</p> |
| |
| <p>ƯÈ÷ <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> |
| ¹Û¿¡ ÀÖ´Â µð·ºÅ丮·Î <code>Alias</code>¸¦ ¸¸µé¾ú´Ù¸é, Á÷Á¢ |
| ´ë»ó µð·ºÅ丮ÀÇ Á¢±ÙÀ» Çã¿ëÇØÁà¾ß ÇÑ´Ù.</p> |
| |
| <div class="example"><h3>¿¹Á¦:</h3><p><code> |
| Alias /image /ftp/pub/image<br /> |
| <Directory /ftp/pub/image><br /> |
| <span class="indent"> |
| Order allow,deny<br /> |
| Allow from all<br /> |
| </span> |
| </Directory> |
| </code></p></div> |
| |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="AliasMatch" id="AliasMatch">AliasMatch</a> <a name="aliasmatch" id="aliasmatch">Áö½Ã¾î</a> <a title="Permanent link" href="#aliasmatch" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© URLÀ» ÆÄÀϽýºÅÛ Àå¼Ò·Î |
| ´ëÀÀÇÑ´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>AliasMatch <var>regex</var> |
| <var>file-path</var>|<var>directory-path</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p>ÀÌ Áö½Ã¾î´Â <code class="directive"><a href="#alias">Alias</a></code>¿Í |
| °°Áö¸¸, °£´ÜÈ÷ URLÀÇ ¾ÕºÎºÐ¸¸ ºñ±³ÇÏ´Â ´ë½Å Ç¥ÁØ Á¤±ÔÇ¥Çö½ÄÀ» |
| »ç¿ëÇÑ´Ù. ÁöÁ¤ÇÑ Á¤±ÔÇ¥Çö½ÄÀ» URL °æ·Î¿Í ºñ±³ÇÏ¿© ¸Â´Ù¸é, |
| ¼¹ö´Â °ýÈ£·Î ¹Àº ºÎºÐÀ» ´ëüÇÏ¿© ÆÄÀϸíÀ¸·Î »ç¿ëÇÑ´Ù. |
| ¿¹¸¦ µé¾î, ´ÙÀ½°ú °°ÀÌ <code>/icons</code> µð·ºÅ丮¸¦ »ç¿ëÇÒ |
| ¼ö ÀÖ´Ù:</p> |
| |
| <div class="example"><p><code> |
| AliasMatch ^/icons(.*) /usr/local/apache/icons$1 |
| </code></p></div> |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="Redirect" id="Redirect">Redirect</a> <a name="redirect" id="redirect">Áö½Ã¾î</a> <a title="Permanent link" href="#redirect" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>Ŭ¶óÀ̾ðÆ®°¡ ´Ù¸¥ URL¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÏ´Â ¿ÜºÎ |
| ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>Redirect [<var>status</var>] <var>URL-path</var> |
| <var>URL</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory, .htaccess</td></tr> |
| <tr><th><a href="directive-dict.html#Override">Override ¿É¼Ç:</a></th><td>FileInfo</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p>Redirect Áö½Ã¾î´Â ÀÌÀü URLÀ» »õ·Î¿î URL·Î ´ëÀÀÇÑ´Ù. |
| Ŭ¶óÀ̾ðÆ®¿¡°Ô »õ·Î¿î URLÀ» º¸³»°í, Ŭ¶óÀ̾ðÆ®´Â »õ·Î¿î |
| ÁÖ¼Ò·Î ´Ù½Ã Çѹø Á¢¼ÓÇÑ´Ù. (%·Î ÀÎÄÚµùµÈ) <var>URL-path</var>·Î |
| ½ÃÀÛÇÏ´Â ¿äûÀ» ¹ÞÀ¸¸é (%·Î ÀÎÄÚµùµÈ) <var>URL</var>·Î ½ÃÀÛÇÏ´Â |
| »õ·Î¿î URL·Î ¸®´ÙÀÌ·º¼Ç ¿À·ù¸¦ º¸³½´Ù.</p> |
| |
| <div class="example"><h3>¿¹Á¦:</h3><p><code> |
| Redirect /service http://foo2.bar.com/service |
| </code></p></div> |
| |
| <p>Ŭ¶óÀ̾ðÆ®°¡ http://myserver/service/foo.txt¸¦ ¿äûÇϸé |
| ´ë½Å http://foo2.bar.com/service/foo.txt¿¡ Á¢±ÙÇ϶ó´Â ÀÀ´äÀ» |
| ¹Þ´Â´Ù.</p> |
| |
| <div class="note"><h3>ÁÖÀÇ</h3> <p>Redirect Áö½Ã¾î´Â ¼³Á¤ÆÄÀÏ¿¡¼ |
| ³ª¿À´Â ¼ø¼¿Í °ü°è¾øÀÌ Alias¿Í ScriptAlias Áö½Ã¾îº¸´Ù ¿ì¼±¼øÀ§°¡ |
| ³ô´Ù. ¶Ç, .htaccess ÆÄÀÏÀ̳ª <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ¼½¼Ç¿¡¼ »ç¿ëÇÏ´õ¶óµµ |
| <var>URL-path</var>¿¡´Â »ó´ë°æ·Î°¡ ¾Æ´Ï¶ó ¹Ýµå½Ã ¿ÏÀüÇÑ URLÀ» |
| »ç¿ëÇØ¾ß ÇÑ´Ù.</p></div> |
| |
| <p><var>status</var> ¾Æ±Ô¸ÕÆ®¸¦ ÁöÁ¤ÇÏÁö¾ÊÀ¸¸é, "Àӽà |
| (temporary)" (HTTP »óÅ 302) ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù. Áï, |
| Ŭ¶óÀ̾ðÆ®¿¡°Ô ÀÚ¿øÀ» Àӽ÷Π¿Å°å´Ù°í ¾Ë¸°´Ù. <var>status</var> |
| ¾Æ±Ô¸ÕÆ®¸¦ »ç¿ëÇÏ¿© ´Ù¸¥ HTTP »óÅÂÄڵ带 ¹ÝȯÇÒ ¼ö ÀÖ´Ù:</p> |
| |
| <dl> |
| <dt>permanent</dt> |
| |
| <dd>ÀÚ¿øÀ» ¿ÏÀüÈ÷ ¿Å°åÀ½À» ¶æÇÏ´Â ¿µ±¸ ¸®´ÙÀÌ·º¼Ç »óŸ¦ |
| (301) ¹ÝȯÇÑ´Ù.</dd> |
| |
| <dt>temp</dt> |
| |
| <dd>Àӽà ¸®´ÙÀÌ·º¼Ç »óŸ¦ (302) ¹ÝȯÇÑ´Ù. ±âº»°ªÀÌ´Ù.</dd> |
| |
| <dt>seeother</dt> |
| |
| <dd>ÀÚ¿øÀÌ ±³Ã¼µÇ¾úÀ½À» ¶æÇÏ´Â "ÂüÁ¶ (See Other)" »óŸ¦ |
| (303) ¹ÝȯÇÑ´Ù.</dd> |
| |
| <dt>gone</dt> |
| |
| <dd>ÀÚ¿øÀÌ ¿µ±¸È÷ »èÁ¦µÇ¾úÀ½À» ¶æÇÏ´Â "¼Ò¸ê (Gone)" »óŸ¦ |
| (410) ¹ÝȯÇÑ´Ù. ÀÌ »óŸ¦ »ç¿ëÇϸé <var>URL</var> ¾Æ±Ô¸ÕÆ®¸¦ |
| »ç¿ëÇÒ ¼ö ¾ø´Ù.</dd> |
| </dl> |
| |
| <p><var>status</var>¿¡ ¼ýÀÚ »óÅÂÄڵ带 »ç¿ëÇÏ¿© ´Ù¸¥ »óÅÂÄڵ嵵 |
| ¹ÝȯÇÒ ¼ö ÀÖ´Ù. »óÅ°¡ 300°ú 399 »çÀ̶ó¸é <var>URL</var> |
| ¾Æ±Ô¸ÕÆ®¸¦ »ç¿ëÇØ¾ß ÇÏ°í, ¾Æ´Ï¶ó¸é »ý·«ÇØ¾ß ÇÑ´Ù. ´Ü, ¾ÆÆÄÄ¡ |
| Äڵ忡 »óÅ°¡ Á¤ÀǵÇÀÖ¾î¾ß ÇÑ´Ù (http_protocol.cÀÇ |
| <code>send_error_response</code> ÇÔ¼ö Âü°í).</p> |
| |
| <div class="example"><h3>¿¹Á¦:</h3><p><code> |
| Redirect permanent /one http://example.com/two<br /> |
| Redirect 303 /three http://example.com/other |
| </code></p></div> |
| |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="RedirectMatch" id="RedirectMatch">RedirectMatch</a> <a name="redirectmatch" id="redirectmatch">Áö½Ã¾î</a> <a title="Permanent link" href="#redirectmatch" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>ÇöÀç URLÀÌ Á¤±ÔÇ¥Çö½Ä¿¡ ÇØ´çÇÏ¸é ¿ÜºÎ ¸®´ÙÀÌ·º¼ÇÀ» |
| º¸³½´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>RedirectMatch [<var>status</var>] <var>regex</var> |
| <var>URL</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory, .htaccess</td></tr> |
| <tr><th><a href="directive-dict.html#Override">Override ¿É¼Ç:</a></th><td>FileInfo</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p>ÀÌ Áö½Ã¾î´Â <code class="directive"><a href="#redirect">Redirect</a></code>¿Í °°Áö¸¸, °£´ÜÈ÷ |
| URLÀÇ ¾ÕºÎºÐ¸¸ ºñ±³ÇÏ´Â ´ë½Å Ç¥ÁØ Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÑ´Ù. |
| ÁöÁ¤ÇÑ Á¤±ÔÇ¥Çö½ÄÀ» URL °æ·Î¿Í ºñ±³ÇÏ¿© ¸Â´Ù¸é, ¼¹ö´Â °ýÈ£·Î |
| ¹Àº ºÎºÐÀ» ´ëüÇÏ¿© ÆÄÀϸíÀ¸·Î »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½Àº |
| ¸ðµç GIF ÆÄÀÏ ¿äû¿¡ ´ëÇØ ´Ù¸¥ ¼¹öÀÇ ºñ½ÁÇÑ À̸§À» °¡Áø |
| JPEG ÆÄÀÏ·Î ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù:</p> |
| |
| <div class="example"><p><code> |
| RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg |
| </code></p></div> |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="RedirectPermanent" id="RedirectPermanent">RedirectPermanent</a> <a name="redirectpermanent" id="redirectpermanent">Áö½Ã¾î</a> <a title="Permanent link" href="#redirectpermanent" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>Ŭ¶óÀ̾ðÆ®°¡ ´Ù¸¥ URL¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÏ´Â ¿ÜºÎ |
| ¿µ±¸ ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>RedirectPermanent <var>URL-path</var> <var>URL</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory, .htaccess</td></tr> |
| <tr><th><a href="directive-dict.html#Override">Override ¿É¼Ç:</a></th><td>FileInfo</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p>ÀÌ Áö½Ã¾î´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀÌ ¿µ±¸ÀûÀÓÀ» (»óÅ |
| 301) ¾Ë¸°´Ù. <code>Redirect permanent</code>¿Í Á¤È®È÷ °°´Ù.</p> |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="RedirectRelative" id="RedirectRelative">RedirectRelative</a> <a name="redirectrelative" id="redirectrelative">Áö½Ã¾î</a> <a title="Permanent link" href="#redirectrelative" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>Allows relative redirect targets.</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>RedirectRelative OFF|ON</code></td></tr> |
| <tr><th><a href="directive-dict.html#Default">±âº»°ª:</a></th><td><code>RedirectRelative OFF</code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| <tr><th><a href="directive-dict.html#Compatibility">Áö¿ø:</a></th><td>2.5.1 and later</td></tr> |
| </table><p>The documentation for this directive has |
| not been translated yet. Please have a look at the English |
| version.</p></div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="RedirectTemp" id="RedirectTemp">RedirectTemp</a> <a name="redirecttemp" id="redirecttemp">Áö½Ã¾î</a> <a title="Permanent link" href="#redirecttemp" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>Ŭ¶óÀ̾ðÆ®°¡ ´Ù¸¥ URL¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÏ´Â ¿ÜºÎ |
| Àӽà ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>RedirectTemp <var>URL-path</var> <var>URL</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®, directory, .htaccess</td></tr> |
| <tr><th><a href="directive-dict.html#Override">Override ¿É¼Ç:</a></th><td>FileInfo</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p>ÀÌ Áö½Ã¾î´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀÌ ÀÓ½ÃÀûÀÓÀ» (»óÅ |
| 302) ¾Ë¸°´Ù. <code>Redirect temp</code>¿Í Á¤È®È÷ °°´Ù.</p> |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="ScriptAlias" id="ScriptAlias">ScriptAlias</a> <a name="scriptalias" id="scriptalias">Áö½Ã¾î</a> <a title="Permanent link" href="#scriptalias" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>URLÀ» ƯÁ¤ ÆÄÀϽýºÅÛ Àå¼Ò·Î ´ëÀÀÇÏ°í ´ë»óÀÌ CGI |
| ½ºÅ©¸³Æ®¶ó°í ¾Ë¸°´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>ScriptAlias <var>URL-path</var> |
| <var>file-path</var>|<var>directory-path</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p><code class="directive">ScriptAlias</code> Áö½Ã¾î´Â <code class="directive"><a href="#alias">Alias</a></code> Áö½Ã¾î¿Í ºñ½ÁÇÏÁö¸¸, |
| Ãß°¡·Î ´ë»ó µð·ºÅ丮¿¡ <code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>ÀÇ cgi-script |
| Çڵ鷯°¡ ó¸®ÇÒ CGI ½ºÅ©¸³Æ®°¡ ÀÖ´Ù°í ¾Ë¸°´Ù. |
| <var>URL-path</var>·Î ½ÃÀÛÇÏ´Â (%·Î ÀÎÄÚµùµÈ) URLÀ» ÆÄÀϽýºÅÛÀÇ |
| Àý´ë°æ·ÎÀÎ µÎ¹ø° ¾Æ±Ô¸ÕÆ®·Î ½ÃÀÛÇÏ´Â ½ºÅ©¸³Æ®¿¡ ´ëÀÀÇÑ´Ù.</p> |
| |
| <div class="example"><h3>¿¹Á¦:</h3><p><code> |
| ScriptAlias /cgi-bin/ /web/cgi-bin/ |
| </code></p></div> |
| |
| <p><code>http://myserver/cgi-bin/foo</code>¸¦ ¿äûÇÏ¸é ¼¹ö´Â |
| <code>/web/cgi-bin/foo</code> ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.</p> |
| |
| </div> |
| <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| <div class="directive-section"><h2><a name="ScriptAliasMatch" id="ScriptAliasMatch">ScriptAliasMatch</a> <a name="scriptaliasmatch" id="scriptaliasmatch">Áö½Ã¾î</a> <a title="Permanent link" href="#scriptaliasmatch" class="permalink">¶</a></h2> |
| <table class="directive"> |
| <tr><th><a href="directive-dict.html#Description">¼³¸í:</a></th><td>Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© URLÀ» ƯÁ¤ ÆÄÀϽýºÅÛ Àå¼Ò·Î |
| ´ëÀÀÇÏ°í ´ë»óÀÌ CGI ½ºÅ©¸³Æ®¶ó°í ¾Ë¸°´Ù</td></tr> |
| <tr><th><a href="directive-dict.html#Syntax">¹®¹ý:</a></th><td><code>ScriptAliasMatch <var>regex</var> |
| <var>file-path</var>|<var>directory-path</var></code></td></tr> |
| <tr><th><a href="directive-dict.html#Context">»ç¿ëÀå¼Ò:</a></th><td>ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ®</td></tr> |
| <tr><th><a href="directive-dict.html#Status">»óÅÂ:</a></th><td>Base</td></tr> |
| <tr><th><a href="directive-dict.html#Module">¸ðµâ:</a></th><td>mod_alias</td></tr> |
| </table> |
| <p>ÀÌ Áö½Ã¾î´Â <code class="directive"><a href="#scriptalias">ScriptAlias</a></code>¿Í °°Áö¸¸, °£´ÜÈ÷ |
| URLÀÇ ¾ÕºÎºÐ¸¸ ºñ±³ÇÏ´Â ´ë½Å Ç¥ÁØ Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÑ´Ù. |
| ÁöÁ¤ÇÑ Á¤±ÔÇ¥Çö½ÄÀ» URL °æ·Î¿Í ºñ±³ÇÏ¿© ¸Â´Ù¸é, ¼¹ö´Â °ýÈ£·Î |
| ¹Àº ºÎºÐÀ» ´ëüÇÏ¿© ÆÄÀϸíÀ¸·Î »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½°ú |
| °°ÀÌ Ç¥ÁØÀûÀÎ <code>/cgi-bin</code>À» »ç¿ëÇÒ ¼ö ÀÖ´Ù:</p> |
| |
| <div class="example"><p><code> |
| ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1 |
| </code></p></div> |
| |
| </div> |
| </div> |
| <div class="bottomlang"> |
| <p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../en/mod/mod_alias.html" hreflang="en" rel="alternate" title="English"> en </a> | |
| <a href="../es/mod/mod_alias.html" hreflang="es" rel="alternate" title="Español"> es </a> | |
| <a href="../fr/mod/mod_alias.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | |
| <a href="../ja/mod/mod_alias.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | |
| <a href="../ko/mod/mod_alias.html" title="Korean"> ko </a> | |
| <a href="../tr/mod/mod_alias.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 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/mod/mod_alias.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 2019 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> |