| <?xml version="1.0" encoding="EUC-KR" ?> |
| <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd"> |
| <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?> |
| <!-- English Revision: 151408:1756708 (outdated) --> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <modulesynopsis metafile="mod_alias.xml.meta"> |
| |
| <name>mod_alias</name> |
| <description>ÆÄÀϽýºÅÛÀÇ ´Ù¸¥ ºÎºÐµéÀ» ¹®¼ °èÃþ±¸Á¶¿¡ Æ÷ÇÔÇÏ°í, |
| URL ¸®´ÙÀÌ·º¼ÇÀ» Á¦°øÇÑ´Ù</description> |
| <status>Base</status> |
| <sourcefile>mod_alias.c</sourcefile> |
| <identifier>alias_module</identifier> |
| |
| <summary> |
| <p>ÀÌ ¸ðµâÀÌ Á¦°øÇÏ´Â Áö½Ã¾îµéÀ» »ç¿ëÇÏ¿© ¼¹ö°¡ ¿äûÀ» |
| ¹ÞÀ»¶§ URLÀ» ¼öÁ¤Çϰųª Á¶ÀÛÇÒ ¼ö ÀÖ´Ù. <directive |
| module="mod_alias">Alias</directive>¿Í <directive |
| module="mod_alias">ScriptAlias</directive> Áö½Ã¾î´Â URLÀ» |
| ÆÄÀϽýºÅÛ °æ·Î·Î ´ëÀÀÇÑ´Ù. ±×·¡¼ <directive |
| module="core">DocumentRoot</directive> ¾Æ·¡¿¡ ¾ø´Â ³»¿ëÀ» |
| À¥À¸·Î ¼ºñ½ºÇÒ ¼ö ÀÖ´Ù. ¶Ç, <directive |
| module="mod_alias">ScriptAlias</directive> Áö½Ã¾î´Â ÁöÁ¤ÇÑ |
| µð·ºÅ丮¿¡ CGI ½ºÅ©¸³Æ®¹Û¿¡ ¾ø´Ù°í ¾Ë¸°´Ù.</p> |
| |
| <p><directive module="mod_alias">Redirect</directive> Áö½Ã¾î´Â |
| Ŭ¶óÀ̾ðÆ®¿¡°Ô ´Ù¸¥ URL·Î »õ·Î¿î ¿äûÀ» Çϵµ·Ï Áö½ÃÇÑ´Ù. |
| ÀÚ¿øÀ» »õ·Î¿î Àå¼Ò·Î ¿Å±ä °æ¿ì ÀÚÁÖ »ç¿ëÇÑ´Ù.</p> |
| |
| <p><module>mod_alias</module>´Â °£´ÜÇÑ URL Á¶ÀÛÀ» À§ÇØ |
| ¼³°èµÇ¾ú´Ù. ÁúÀǹ®ÀÚ¿ Á¶ÀÛ°ú °°Àº º¹ÀâÇÑ ÀÛ¾÷Àº |
| <module>mod_rewrite</module>°¡ Á¦°øÇÏ´Â ±â´ÉÀ» ÀÌ¿ëÇ϶ó.</p> |
| |
| </summary> |
| |
| <seealso><module>mod_rewrite</module></seealso> <seealso><a |
| href="../urlmapping.html">URLÀ» ÆÄÀϽýºÅÛ¿¡ ´ëÀÀ</a></seealso> |
| |
| <section id="order"><title>ó¸® ¼ø¼</title> |
| |
| <p>¼·Î ´Ù¸¥ »ç¿ëÀå¼Ò¿¡¼ Alias¿Í Redirect¸¦ »ç¿ëÇÏ¸é ´Ù¸¥ Áö½Ã¾î¿Í |
| °°ÀÌ Ç¥ÁØ <a href="../sections.html#mergin">°áÇÕ ¹æ¹ý</a>¿¡ |
| µû¶ó ó¸®ÇÑ´Ù. ±×·¯³ª °°Àº »ç¿ëÀå¼Ò¿¡ (¿¹¸¦ µé¾î, °°Àº <directive |
| type="section" module="core">VirtualHost</directive> ¼½¼Ç¿¡) |
| Alias¿Í Redirect¸¦ »ç¿ëÇÏ¸é ¾Æ·¡ ¼ø¼´ë·Î ó¸®ÇÑ´Ù.</p> |
| |
| <p>¸ÕÀú ¸ðµç Redirect¸¦ ó¸®ÇÑ ÈÄ Alias¸¦ ó¸®ÇÑ´Ù. ±×·¡¼ |
| <directive module="mod_alias">Redirect</directive>³ª <directive |
| module="mod_alias">RedirectMatch</directive>¿¡ ÇØ´çÇÏ´Â ¿äûÀº |
| Àý´ë·Î AliasÇÏÁö ¾Ê´Â´Ù. ±×¸®°í Alias¿Í Redirect´Â ¼³Á¤ÆÄÀÏ¿¡¼ |
| ù¹ø°·Î ³ª¿À´Â °ÍÀ» »ç¿ëÇÑ´Ù.</p> |
| |
| <p>±×·¡¼ ¿©·¯ Áö½Ã¾î°¡ µ¿ÀÏÇÑ ÇÏÀ§°æ·Î¿¡ ÇØ´çÇÏ´Â °æ¿ì ¸ðµç |
| Áö½Ã¾î¸¦ Àû¿ëÇϱâÀ§Çؼ´Â °¡Àå »ó¼¼ÇÑ °æ·Î¸¦ ¸ÕÀú »ç¿ëÇØ¾ß ÇÑ´Ù. |
| ¿¹¸¦ µé¾î, ´ÙÀ½ ¼³Á¤Àº ÀǵµÇÑ´ë·Î µ¿ÀÛÇÑ´Ù:</p> |
| |
| <example> |
| Alias /foo/bar /baz<br /> |
| Alias /foo /gaq |
| </example> |
| |
| <p>±×·¯³ª À§ÀÇ µÎ Áö½Ã¾î ¼ø¼¸¦ ¹Ù²Ù¸é <code>/foo/bar</code> |
| <directive module="mod_alias">Alias</directive> ÀÌÀü¿¡ |
| <code>/foo</code> <directive module="mod_alias">Alias</directive>¸¦ |
| Àû¿ëÇϹǷΠÇ×»ó µÎ¹ø° Áö½Ã¾î¸¦ ¹«½ÃÇÑ´Ù.</p> |
| |
| </section> |
| |
| <directivesynopsis> |
| <name>Alias</name> |
| <description>URLÀ» ƯÁ¤ ÆÄÀϽýºÅÛ Àå¼Ò·Î ´ëÀÀÇÑ´Ù</description> |
| <syntax>Alias <var>URL-path</var> |
| <var>file-path</var>|<var>directory-path</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| </contextlist> |
| |
| <usage> |
| |
| <p><directive>Alias</directive> Áö½Ã¾î¸¦ »ç¿ëÇϸé ÆÄÀϽýºÅÛ¿¡¼ |
| <directive module="core">DocumentRoot</directive> ¹Û¿¡ ÀÖ´Â |
| ¹®¼µµ ¼ºñ½ºÇÒ ¼ö ÀÖ´Ù. <var>url-path</var>·Î ½ÃÀÛÇÏ´Â |
| (%·Î ÀÎÄÚµùµÈ) URLÀ» <var>directory-path</var>·Î ½ÃÀÛÇÏ´Â |
| ÆÄÀÏ¿¡ ´ëÀÀÇÑ´Ù.</p> |
| |
| <example><title>¿¹Á¦:</title> |
| Alias /image /ftp/pub/image |
| </example> |
| |
| <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>À» Æ÷ÇÔÇÏ´Â ¿©·¯ <directive |
| type="section" module="core">Directory</directive> ¼½¼ÇÀÌ |
| ÇÊ¿äÇÒÁöµµ ¸ð¸¥´Ù. ÀÌ Áö½Ã¾î´Â <directive type="section" |
| module="core">Directory</directive> ¼½¼ÇÀ» °Ë»çÇϱâ Àü¿¡ |
| ó¸®ÇϹǷÎ, ´ëÀÀÀÇ ´ë»ó¸¸ ¼½¼ÇÀÇ ¿µÇâÀ» ¹Þ´Â´Ù. (±×·¯³ª |
| <directive type="section" module="core">Location</directive> |
| ¼½¼ÇÀº ÀÌ Áö½Ã¾î¸¦ ó¸®Çϱâ Àü¿¡ Çѹø¸¸ °Ë»çÇϹǷΠÁöÁ¤ÇÑ |
| URL ÀÌÇÏ Àüü¿¡ ¿µÇâÀ» ÁØ´Ù.)</p> |
| |
| <p>ƯÈ÷ <directive module="core">DocumentRoot</directive> |
| ¹Û¿¡ ÀÖ´Â µð·ºÅ丮·Î <code>Alias</code>¸¦ ¸¸µé¾ú´Ù¸é, Á÷Á¢ |
| ´ë»ó µð·ºÅ丮ÀÇ Á¢±ÙÀ» Çã¿ëÇØÁà¾ß ÇÑ´Ù.</p> |
| |
| <example><title>¿¹Á¦:</title> |
| Alias /image /ftp/pub/image<br /> |
| <Directory /ftp/pub/image><br /> |
| <indent> |
| Order allow,deny<br /> |
| Allow from all<br /> |
| </indent> |
| </Directory> |
| </example> |
| |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>AliasMatch</name> |
| <description>Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© URLÀ» ÆÄÀϽýºÅÛ Àå¼Ò·Î |
| ´ëÀÀÇÑ´Ù</description> |
| <syntax>AliasMatch <var>regex</var> |
| <var>file-path</var>|<var>directory-path</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| </contextlist> |
| |
| <usage> |
| <p>ÀÌ Áö½Ã¾î´Â <directive module="mod_alias">Alias</directive>¿Í |
| °°Áö¸¸, °£´ÜÈ÷ URLÀÇ ¾ÕºÎºÐ¸¸ ºñ±³ÇÏ´Â ´ë½Å Ç¥ÁØ Á¤±ÔÇ¥Çö½ÄÀ» |
| »ç¿ëÇÑ´Ù. ÁöÁ¤ÇÑ Á¤±ÔÇ¥Çö½ÄÀ» URL °æ·Î¿Í ºñ±³ÇÏ¿© ¸Â´Ù¸é, |
| ¼¹ö´Â °ýÈ£·Î ¹Àº ºÎºÐÀ» ´ëüÇÏ¿© ÆÄÀϸíÀ¸·Î »ç¿ëÇÑ´Ù. |
| ¿¹¸¦ µé¾î, ´ÙÀ½°ú °°ÀÌ <code>/icons</code> µð·ºÅ丮¸¦ »ç¿ëÇÒ |
| ¼ö ÀÖ´Ù:</p> |
| |
| <example> |
| AliasMatch ^/icons(.*) /usr/local/apache/icons$1 |
| </example> |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>Redirect</name> |
| <description>Ŭ¶óÀ̾ðÆ®°¡ ´Ù¸¥ URL¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÏ´Â ¿ÜºÎ |
| ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù</description> |
| <syntax>Redirect [<var>status</var>] <var>URL-path</var> |
| <var>URL</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| <context>directory</context><context>.htaccess</context></contextlist> |
| <override>FileInfo</override> |
| |
| <usage> |
| <p>Redirect Áö½Ã¾î´Â ÀÌÀü URLÀ» »õ·Î¿î URL·Î ´ëÀÀÇÑ´Ù. |
| Ŭ¶óÀ̾ðÆ®¿¡°Ô »õ·Î¿î URLÀ» º¸³»°í, Ŭ¶óÀ̾ðÆ®´Â »õ·Î¿î |
| ÁÖ¼Ò·Î ´Ù½Ã Çѹø Á¢¼ÓÇÑ´Ù. (%·Î ÀÎÄÚµùµÈ) <var>URL-path</var>·Î |
| ½ÃÀÛÇÏ´Â ¿äûÀ» ¹ÞÀ¸¸é (%·Î ÀÎÄÚµùµÈ) <var>URL</var>·Î ½ÃÀÛÇÏ´Â |
| »õ·Î¿î URL·Î ¸®´ÙÀÌ·º¼Ç ¿À·ù¸¦ º¸³½´Ù.</p> |
| |
| <example><title>¿¹Á¦:</title> |
| Redirect /service http://foo2.bar.com/service |
| </example> |
| |
| <p>Ŭ¶óÀ̾ðÆ®°¡ http://myserver/service/foo.txt¸¦ ¿äûÇϸé |
| ´ë½Å http://foo2.bar.com/service/foo.txt¿¡ Á¢±ÙÇ϶ó´Â ÀÀ´äÀ» |
| ¹Þ´Â´Ù.</p> |
| |
| <note><title>ÁÖÀÇ</title> <p>Redirect Áö½Ã¾î´Â ¼³Á¤ÆÄÀÏ¿¡¼ |
| ³ª¿À´Â ¼ø¼¿Í °ü°è¾øÀÌ Alias¿Í ScriptAlias Áö½Ã¾îº¸´Ù ¿ì¼±¼øÀ§°¡ |
| ³ô´Ù. ¶Ç, .htaccess ÆÄÀÏÀ̳ª <directive type="section" |
| module="core">Directory</directive> ¼½¼Ç¿¡¼ »ç¿ëÇÏ´õ¶óµµ |
| <var>URL-path</var>¿¡´Â »ó´ë°æ·Î°¡ ¾Æ´Ï¶ó ¹Ýµå½Ã ¿ÏÀüÇÑ URLÀ» |
| »ç¿ëÇØ¾ß ÇÑ´Ù.</p></note> |
| |
| <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> |
| |
| <example><title>¿¹Á¦:</title> |
| Redirect permanent /one http://example.com/two<br /> |
| Redirect 303 /three http://example.com/other |
| </example> |
| |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>RedirectMatch</name> |
| <description>ÇöÀç URLÀÌ Á¤±ÔÇ¥Çö½Ä¿¡ ÇØ´çÇÏ¸é ¿ÜºÎ ¸®´ÙÀÌ·º¼ÇÀ» |
| º¸³½´Ù</description> |
| <syntax>RedirectMatch [<var>status</var>] <var>regex</var> |
| <var>URL</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| <context>directory</context><context>.htaccess</context></contextlist> |
| <override>FileInfo</override> |
| |
| <usage> |
| <p>ÀÌ Áö½Ã¾î´Â <directive |
| module="mod_alias">Redirect</directive>¿Í °°Áö¸¸, °£´ÜÈ÷ |
| URLÀÇ ¾ÕºÎºÐ¸¸ ºñ±³ÇÏ´Â ´ë½Å Ç¥ÁØ Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÑ´Ù. |
| ÁöÁ¤ÇÑ Á¤±ÔÇ¥Çö½ÄÀ» URL °æ·Î¿Í ºñ±³ÇÏ¿© ¸Â´Ù¸é, ¼¹ö´Â °ýÈ£·Î |
| ¹Àº ºÎºÐÀ» ´ëüÇÏ¿© ÆÄÀϸíÀ¸·Î »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½Àº |
| ¸ðµç GIF ÆÄÀÏ ¿äû¿¡ ´ëÇØ ´Ù¸¥ ¼¹öÀÇ ºñ½ÁÇÑ À̸§À» °¡Áø |
| JPEG ÆÄÀÏ·Î ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù:</p> |
| |
| <example> |
| RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg |
| </example> |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>RedirectTemp</name> |
| <description>Ŭ¶óÀ̾ðÆ®°¡ ´Ù¸¥ URL¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÏ´Â ¿ÜºÎ |
| Àӽà ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù</description> |
| <syntax>RedirectTemp <var>URL-path</var> <var>URL</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| <context>directory</context><context>.htaccess</context></contextlist> |
| <override>FileInfo</override> |
| |
| <usage> |
| <p>ÀÌ Áö½Ã¾î´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀÌ ÀÓ½ÃÀûÀÓÀ» (»óÅ |
| 302) ¾Ë¸°´Ù. <code>Redirect temp</code>¿Í Á¤È®È÷ °°´Ù.</p> |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>RedirectPermanent</name> |
| <description>Ŭ¶óÀ̾ðÆ®°¡ ´Ù¸¥ URL¿¡ Á¢¼ÓÇϵµ·Ï ¿äûÇÏ´Â ¿ÜºÎ |
| ¿µ±¸ ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù</description> |
| <syntax>RedirectPermanent <var>URL-path</var> <var>URL</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| <context>directory</context><context>.htaccess</context></contextlist> |
| <override>FileInfo</override> |
| |
| <usage> |
| <p>ÀÌ Áö½Ã¾î´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀÌ ¿µ±¸ÀûÀÓÀ» (»óÅ |
| 301) ¾Ë¸°´Ù. <code>Redirect permanent</code>¿Í Á¤È®È÷ °°´Ù.</p> |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>ScriptAlias</name> |
| <description>URLÀ» ƯÁ¤ ÆÄÀϽýºÅÛ Àå¼Ò·Î ´ëÀÀÇÏ°í ´ë»óÀÌ CGI |
| ½ºÅ©¸³Æ®¶ó°í ¾Ë¸°´Ù</description> |
| <syntax>ScriptAlias <var>URL-path</var> |
| <var>file-path</var>|<var>directory-path</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| </contextlist> |
| |
| <usage> |
| <p><directive>ScriptAlias</directive> Áö½Ã¾î´Â <directive |
| module="mod_alias">Alias</directive> Áö½Ã¾î¿Í ºñ½ÁÇÏÁö¸¸, |
| Ãß°¡·Î ´ë»ó µð·ºÅ丮¿¡ <module >mod_cgi</module>ÀÇ cgi-script |
| Çڵ鷯°¡ ó¸®ÇÒ CGI ½ºÅ©¸³Æ®°¡ ÀÖ´Ù°í ¾Ë¸°´Ù. |
| <var>URL-path</var>·Î ½ÃÀÛÇÏ´Â (%·Î ÀÎÄÚµùµÈ) URLÀ» ÆÄÀϽýºÅÛÀÇ |
| Àý´ë°æ·ÎÀÎ µÎ¹ø° ¾Æ±Ô¸ÕÆ®·Î ½ÃÀÛÇÏ´Â ½ºÅ©¸³Æ®¿¡ ´ëÀÀÇÑ´Ù.</p> |
| |
| <example><title>¿¹Á¦:</title> |
| ScriptAlias /cgi-bin/ /web/cgi-bin/ |
| </example> |
| |
| <p><code>http://myserver/cgi-bin/foo</code>¸¦ ¿äûÇÏ¸é ¼¹ö´Â |
| <code>/web/cgi-bin/foo</code> ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.</p> |
| </usage> |
| </directivesynopsis> |
| |
| <directivesynopsis> |
| <name>ScriptAliasMatch</name> |
| <description>Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© URLÀ» ƯÁ¤ ÆÄÀϽýºÅÛ Àå¼Ò·Î |
| ´ëÀÀÇÏ°í ´ë»óÀÌ CGI ½ºÅ©¸³Æ®¶ó°í ¾Ë¸°´Ù</description> |
| <syntax>ScriptAliasMatch <var>regex</var> |
| <var>file-path</var>|<var>directory-path</var></syntax> |
| <contextlist><context>server config</context><context>virtual host</context> |
| </contextlist> |
| |
| <usage> |
| <p>ÀÌ Áö½Ã¾î´Â <directive |
| module="mod_alias">ScriptAlias</directive>¿Í °°Áö¸¸, °£´ÜÈ÷ |
| URLÀÇ ¾ÕºÎºÐ¸¸ ºñ±³ÇÏ´Â ´ë½Å Ç¥ÁØ Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÑ´Ù. |
| ÁöÁ¤ÇÑ Á¤±ÔÇ¥Çö½ÄÀ» URL °æ·Î¿Í ºñ±³ÇÏ¿© ¸Â´Ù¸é, ¼¹ö´Â °ýÈ£·Î |
| ¹Àº ºÎºÐÀ» ´ëüÇÏ¿© ÆÄÀϸíÀ¸·Î »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ´ÙÀ½°ú |
| °°ÀÌ Ç¥ÁØÀûÀÎ <code>/cgi-bin</code>À» »ç¿ëÇÒ ¼ö ÀÖ´Ù:</p> |
| |
| <example> |
| ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1 |
| </example> |
| </usage> |
| </directivesynopsis> |
| |
| </modulesynopsis> |
| |