| <?xml version='1.0' encoding='EUC-KR' ?> |
| <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd"> |
| <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?> |
| <!-- English Revision: 1.12 --> |
| |
| <!-- |
| Copyright 2004 The Apache Software Foundation |
| |
| Licensed 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. |
| --> |
| |
| <manualpage metafile="public_html.xml.meta"> |
| <parentdocument href="./">How-To / Tutorials</parentdocument> |
| |
| <title>»ç¿ëÀÚº° À¥µð·ºÅ丮</title> |
| |
| <summary> |
| <p>¿©·¯ »ç¿ëÀÚ°¡ ÀÖ´Â ½Ã½ºÅÛ¿¡¼ <directive |
| module="mod_userdir">UserDir</directive> Áö½Ã¾î¸¦ »ç¿ëÇϸé |
| °¢ »ç¿ëÀÚ´Â ÀÚ½ÅÀÇ È¨µð·ºÅ丮 ¾È¿¡ À¥»çÀÌÆ®¸¦ ¸¸µé ¼ö ÀÖ´Ù. |
| URL <code>http://example.com/~username/</code>¿¡ Á¢±ÙÇϸé |
| »ç¿ëÀÚ "<code>username</code>"ÀÇ È¨µð·ºÅ丮¿¡¼ <directive |
| module="mod_userdir">UserDir</directive> Áö½Ã¾î·Î ÁöÁ¤ÇÑ |
| ÇÏÀ§µð·ºÅ丮¿¡ ÀÖ´Â ÆäÀÌÁö¸¦ °¡Á®¿À°Ô µÈ´Ù.</p> |
| |
| </summary> |
| |
| <seealso><a href="../urlmapping.html">URLÀ» ÆÄÀϽýºÅÛ¿¡ ´ëÀÀ</a></seealso> |
| |
| <section id="related"> |
| <title>»ç¿ëÀÚº° À¥µð·ºÅ丮</title> |
| <related> |
| <modulelist> |
| <module>mod_userdir</module> |
| </modulelist> |
| <directivelist> |
| <directive module="mod_userdir">UserDir</directive> |
| <directive module="core">DirectoryMatch</directive> |
| <directive module="core">AllowOverride</directive> |
| </directivelist> |
| </related> |
| </section> |
| |
| <section id="userdir"> |
| <title>UserDir·Î ÆÄÀÏ°æ·Î ÁöÁ¤Çϱâ</title> |
| |
| <p><directive module="mod_userdir">UserDir</directive> |
| Áö½Ã¾î´Â »ç¿ëÀÚº° ÆäÀÌÁö¸¦ °¡Á®¿Ã µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ´Ù. ÀÌ |
| Áö½Ã¾îÀÇ »ç¿ë¹ýÀº ¿©·¯°¡Áö´Ù.</p> |
| |
| <p>½½·¡½¬·Î ½ÃÀÛÇÏÁö¾Ê´Â °æ·Î¸¦ ÁöÁ¤ÇÏ¸é °¢ »ç¿ëÀÚÀÇ |
| Ȩµð·ºÅ丮¿¡ »ó´ëÀûÀÎ µð·ºÅ丮 °æ·Î·Î ó¸®ÇÑ´Ù. ¿¹¸¦ µé¾î, |
| ¾Æ·¡ ¼³Á¤ÀÇ °æ¿ì:</p> |
| |
| <example> |
| UserDir public_html |
| </example> |
| |
| <p>URL <code>http://example.com/~rbowen/file.html</code>˼ |
| ÆÄÀÏ °æ·Î <code>/home/rbowen/public_html/file.html</code>À» |
| ¶æÇÑ´Ù.</p> |
| |
| <p>½½·¡½¬·Î ½ÃÀÛÇÏ´Â °æ·Î¸¦ ÁöÁ¤Çϸé ÁöÁ¤ÇÑ µð·ºÅ丮¿¡ |
| »ç¿ëÀÚ¸íÀ» ´õÇÑ µð·ºÅ丮 °æ·Î¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ¾Æ·¡ |
| ¼³Á¤ÀÇ °æ¿ì:</p> |
| |
| <example> |
| UserDir /var/html |
| </example> |
| |
| <p>URL <code>http://example.com/~rbowen/file.html</code>˼ |
| ÆÄÀÏ °æ·Î <code>/var/html/rbowen/file.html</code>À» ¶æÇÑ´Ù.</p> |
| |
| <p>º°Ç¥ (*)¸¦ Æ÷ÇÔÇÑ °æ·Î¸¦ ÁöÁ¤ÇÏ¸é º°Ç¥¸¦ »ç¿ëÀÚ¸íÀ¸·Î |
| ´ëüÇÑ °æ·Î¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ¾Æ·¡ ¼³Á¤ÀÇ °æ¿ì:</p> |
| |
| <example> |
| UserDir /var/www/*/docs |
| </example> |
| |
| <p>URL <code>http://example.com/~rbowen/file.html</code>˼ |
| ÆÄÀÏ °æ·Î <code>/var/www/rbowen/docs/file.html</code>À» |
| ¶æÇÑ´Ù.</p> |
| |
| </section> |
| |
| <section id="enable"> |
| <title>±â´ÉÀ» ÀÌ¿ëÇÒ »ç¿ëÀÚ Á¦ÇÑÇϱâ</title> |
| |
| <p>UserDir ¹®¼¿¡ ÀÖ´Â ¹®¹ýÀ» »ç¿ëÇÏ¿© »ç¿ëÀÚº° À¥µð·ºÅ丮 |
| ±â´ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ¸¦ Á¦ÇÑÇÒ ¼ö ÀÖ´Ù:</p> |
| |
| <example> |
| UserDir enabled<br /> |
| UserDir disabled root jro fish |
| </example> |
| |
| <p>À§ ¼³Á¤Àº <code>disabled</code> ¹®Àå¿¡ ¿°ÅÇÑ »ç¶÷À» |
| Á¦¿ÜÇÏ°í ¸ðµç »ç¿ëÀÚ¿¡°Ô À¥µð·ºÅ丮 ±â´ÉÀ» Çã¶ôÇÑ´Ù. ¶Ç, |
| ´ÙÀ½°ú °°ÀÌ ¸î¸î »ç¿ëÀÚ¸¦ Á¦¿ÜÇÏ°í ±â´ÉÀ» Çã¶ôÇÏÁö ¾ÊÀ» |
| ¼öµµ ÀÖ´Ù:</p> |
| |
| <example> |
| UserDir disabled<br /> |
| UserDir enabled rbowen krietz |
| </example> |
| |
| <p><directive module="mod_userdir">UserDir</directive> |
| ¹®¼¿¡ ÀÖ´Â ´Ù¸¥ ¿¹µéµµ Âü°íÇ϶ó.</p> |
| |
| </section> |
| |
| <section id="cgi"> |
| <title>°¢ »ç¿ëÀÚº° cgi µð·ºÅ丮 ÁöÁ¤Çϱâ</title> |
| |
| <p>»ç¿ëÀÚ¸¶´Ù cgi-bin µð·ºÅ丮¸¦ ºÎ¿©ÇÏ·Á¸é <directive |
| module="core" type="section">Directory</directive> Áö½Ã¾î¸¦ |
| »ç¿ëÇÏ¿© »ç¿ëÀÚ È¨µð·ºÅ丮ÀÇ Æ¯Á¤ ÇÏÀ§µð·ºÅ丮¸¦ cgi °¡´ÉÇÏ°Ô |
| ¸¸µç´Ù.</p> |
| |
| <example> |
| <Directory /home/*/public_html/cgi-bin/><br /> |
| Options ExecCGI<br /> |
| SetHandler cgi-script<br /> |
| </Directory> |
| </example> |
| |
| <p><code>UserDir</code>ÀÌ <code>public_html</code>À̶ó°í |
| °¡Á¤Çϸé, ´ÙÀ½°ú °°ÀÌ ±× ¾È¿¡ ÀÖ´Â cgi ÇÁ·Î±×·¥ |
| <code>example.cgi</code>¸¦ ½ÇÇàÇÒ ¼ö ÀÖ´Ù.</p> |
| |
| <example> |
| http://example.com/~rbowen/cgi-bin/example.cgi |
| </example> |
| |
| </section> |
| |
| <section id="htaccess"> |
| <title>»ç¿ëÀÚ°¡ ¼³Á¤À» º¯°æÇÒ ¼ö ÀÖµµ·Ï ¸¸µé±â</title> |
| |
| <p>»ç¿ëÀÚ°¡ ÀÚ½ÅÀÇ À¥°ø°£¿¡ ´ëÇÑ À¥¼¹ö ¼³Á¤À» ¼öÁ¤ÇÏ·Á¸é, |
| <code>.htaccess</code> ÆÄÀÏÀ» »ç¿ëÇÒ ¼ö ÀÖ¾î¾ß ÇÑ´Ù. <directive |
| module="core">AllowOverride</directive>¸¦ »ç¿ëÀÚ°¡ ¼öÁ¤ÇÒ |
| ¼ö ÀÖ´Â Áö½Ã¾î¿¡ ÀûÇÕÇÑ °ªÀ¸·Î ¼³Á¤Ç϶ó. ¾î¶»°Ô µ¿ÀÛÇÏ´ÂÁö¿¡ |
| ´ëÇÑ ÀÚ¼¼ÇÑ Á´º¸´Â <a href="htaccess.html">.htaccess |
| ÅõÅ丮¾ó</a>À» Âü°íÇ϶ó.</p> |
| |
| </section> |
| |
| </manualpage> |