<?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: 151405:421174 (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_dir.xml.meta">
<name>mod_dir</name>
<description>"¸¶Áö¸· ½½·¡½¬" ¸®´ÙÀÌ·º¼ÇÀ» Á¦°øÇÏ°í µð·ºÅä¸®
index ÆÄÀÏÀ» ¼­ºñ½ºÇÑ´Ù</description>
<status>Base</status>
<sourcefile>mod_dir.c</sourcefile>
<identifier>dir_module</identifier>

<summary>
    <p>µð·ºÅä¸®ÀÇ index´Â ´ÙÀ½ µÑÁß ÇÑ°¡Áö ¹æ¹ýÀ¸·Î Á¦°øµÈ´Ù:</p>

    <ul>
      <li>»ç¿ëÀÚ°¡ ÀÛ¼ºÇÑ º¸Åë <code>index.html</code>ÀÌ¶ó´Â
      ÆÄÀÏ. <directive module="mod_dir">DirectoryIndex</directive>
      Áö½Ã¾î´Â ÀÌ ÆÄÀÏÀÇ ÀÌ¸§À» ÁöÁ¤ÇÑ´Ù. <module>mod_dir</module>°¡
      ÀÌ Áö½Ã¾î¸¦ Á¦°øÇÑ´Ù.</li>

      <li>¾Æ´Ï¶ó¸é ¼­¹ö°¡ ¸¸µç ¸ñ·Ï. <module>mod_autoindex</module>°¡
      ÀÌ ±â´ÉÀ» Á¦°øÇÑ´Ù.</li>
    </ul>
    <p>µÎ ±â´ÉÀº ¼­·Î º°°³·Î ¿øÇÑ´Ù¸é ÀÚµ¿ index »ý¼ºÀ» ¿ÏÀüÈ÷
    ¾ø¾Ù (È¤Àº ±³Ã¼ÇÒ) ¼ö ÀÖ´Ù.</p>

    <p><code>dirname</code>ÀÌ µð·ºÅä¸®¶ó¸é ¼­¹ö´Â URL
    <code>http://servername/foo/dirname</code> ¿äÃ»À» ¹ÞÀ¸¸é
    "¸¶Áö¸· ½½·¡½¬" ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù. µð·ºÅä¸®¿¡´Â ¸¶Áö¸·
    ½½·¡½¬°¡ ÇÊ¿äÇÏ´Ù. ±×·¡¼­ <module>mod_dir</module>Àº
    <code>http://servername/foo/dirname/</code>·Î ¸®´ÙÀÌ·º¼ÇÀ»
    º¸³½´Ù.</p>
</summary>

<directivesynopsis>
<name>DirectoryIndex</name>
<description>Å¬¶óÀÌ¾ðÆ®°¡ µð·ºÅä¸®¸¦ ¿äÃ»ÇÒ¶§ Ã£¾Æº¼ ÀÚ¿ø ¸ñ·Ï</description>
<syntax>DirectoryIndex
    <var>local-url</var> [<var>local-url</var>] ...</syntax>
<default>DirectoryIndex index.html</default>
<contextlist><context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context></contextlist>
<override>Indexes</override>

<usage>
    <p><directive>DirectoryIndex</directive> Áö½Ã¾î´Â Å¬¶óÀÌ¾ðÆ®°¡
    µð·ºÅä¸®¸í ³¡¿¡ /¸¦ ºÙ¿©¼­ µð·ºÅä¸®ÀÇ index¸¦ ¿äÃ»ÇÒ¶§ Ã£¾Æº¼
    ÀÚ¿ø ¸ñ·ÏÀ» ÁöÁ¤ÇÑ´Ù. <var>Local-url</var>Àº ¿äÃ»ÇÑ µð·ºÅä¸®¿¡
    »ó´ëÀûÀÎ ¹®¼­ÀÇ (%·Î ÀÎÄÚµùµÈ) URLÀÌ´Ù. º¸ÅëÀº µð·ºÅä¸®¿¡
    ÀÖ´Â ÆÄÀÏ¸íÀÌ´Ù. ¿©·¯ URLÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ°í, ÀÌ °æ¿ì ¼­¹ö´Â
    Ã¹¹øÂ°·Î Ã£Àº ÆÄÀÏÀ» º¸³½´Ù. ÀÚ¿øÀ» Ã£À» ¼ö ¾ø°í
    <code>Indexes</code> ¿É¼ÇÀ» ¼³Á¤ÇÏ¿´´Ù¸é ¼­¹ö´Â Á÷Á¢ µð·ºÅä¸®
    ¸ñ·ÏÀ» ¸¸µç´Ù.</p>

    <example><title>¿¹Á¦</title>
      DirectoryIndex index.html
    </example>

    <p>ÀÌ °æ¿ì <code>http://myserver/docs/</code>¸¦ ¿äÃ»ÇÒ¶§
    <code>http://myserver/docs/index.html</code>ÀÌ ÀÖÀ¸¸é ÀÌ¸¦
    º¸³»°í, ¾ø´Ù¸é µð·ºÅä¸® ¸ñ·ÏÀ» º¸³½´Ù.</p>

    <p>¹®¼­°¡ ¹Ýµå½Ã µð·ºÅä¸®¿¡ »ó´ëÀûÀÏ ÇÊ¿ä´Â ¾ø´Ù.</p>

    <example>
      DirectoryIndex index.html index.txt  /cgi-bin/index.pl
    </example>

    <p>ÀÌ °æ¿ì µð·ºÅä¸®¿¡ <code>index.html</code>ÀÌ³ª
    <code>index.txt</code>°¡ ¾øÀ¸¸é CGI ½ºÅ©¸³Æ®
    <code>/cgi-bin/index.pl</code>À» ½ÇÇàÇÑ´Ù.</p>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>DirectorySlash</name>
<description>¸¶Áö¸· ½½·¡½¬ ¸®´ÙÀÌ·º¼ÇÀ» Å°°í ²ö´Ù</description>
<syntax>DirectorySlash On|Off</syntax>
<default>DirectorySlash On</default>
<contextlist><context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context></contextlist>
<override>Indexes</override>
<compatibility>¾ÆÆÄÄ¡ 2.0.51 ÀÌÈÄºÎÅÍ</compatibility>

<usage>
    <p><directive>DirectorySlash</directive> Áö½Ã¾î´Â
    <module>mod_dir</module>°¡ µð·ºÅä¸®¸¦ °¡¸®Å°´Â URLÀ» ¼öÁ¤ÇÒÁö
    ¿©ºÎ¸¦ °áÁ¤ÇÑ´Ù.</p>

    <p>»ç¿ëÀÚ°¡ ¸¶Áö¸· ½½·¡½¬¾øÀÌ µð·ºÅä¸®¿¡ ÇØ´çÇÏ´Â ÀÚ¿øÀ»
    ¿äÃ»ÇÏ¸é, <module>mod_dir</module>´Â º¸Åë ´ÙÀ½°ú °°Àº ÀÌÀ¯·Î
    »ç¿ëÀÚ¸¦ ¸¶Áö¸· ½½·¡½¬¸¦ <em>ºÙÀÎ</em> µ¿ÀÏÇÑ ÀÚ¿øÀ¸·Î
    ¸®´ÙÀÌ·º¼ÇÇÑ´Ù.</p>

    <ul>
    <li>»ç¿ëÀÚ´Â °á±¹ ÀÚ¿øÀÇ Á¤±Ô URLÀ» ¿äÃ»ÇÏ°Ô µÈ´Ù</li>
    <li><module>mod_autoindex</module>°¡ ¿Ã¹Ù·Î µ¿ÀÛÇÑ´Ù. ÀÌ
    ±â´ÉÀÌ ¾ø´Ù¸é ÀÌ ¸ðµâÀº ¸µÅ©¿¡ Àß¸øµÈ °æ·Î¸¦ ¾²°Ô µÈ´Ù.</li>
    <li><directive module="mod_dir">DirectoryIndex</directive>´Â
    ¸¶Áö¸· ½½·¡½¬°¡ ÀÖ´Â µð·ºÅä¸® ¿äÃ»<em>¸¸À»</em> Ã³¸®ÇÑ´Ù.</li>
    <li>html ÆäÀÌÁö¿¡ ÀÖ´Â »ó´ëÀûÀÎ URL ÂüÁ¶°¡ ¿Ã¹Ù·Î µ¿ÀÛÇÑ´Ù.</li>
    </ul>

    <p>±×·±µ¥ ÀÌ ±â´ÉÀ» ¿øÇÏÁö ¾Ê°Å<em>³ª</em> À§¿¡ µç ÀÌÀ¯°¡
    ´ç½Å¿¡°Ô ¾Ë¸ÂÁö ¾Ê´Ù¸é ´ÙÀ½°ú °°ÀÌ ¸®´ÙÀÌ·º¼ÇÀ» ÇÏÁö ¾ÊÀ»
    ¼ö ÀÖ´Ù.</p>

    <example>
        # ¾Æ·¡ º¸¾È °æ°í Âü°í!<br />
        &lt;Location /some/path&gt;<br />
        <indent>
            DirectorySlash Off<br />
            SetHandler some-handler<br />
        </indent>
        &lt;/Location&gt;
    </example>

    <note type="warning"><title>º¸¾È °æ°í</title>
    <p>¸¶Áö¸· ½½·¡½¬ ¸®´ÙÀÌ·º¼ÇÀ» ²ô¸é Á¤º¸°¡ À¯ÃâµÉ ¼ö ÀÖ´Ù.
    (<code>Options +Indexes</code>) <module>mod_autoindex</module>¸¦
    »ç¿ëÇÏ°í <directive module="mod_dir">DirectoryIndex</directive>¸¦
    (<code>index.html</code> °°Àº) À¯È¿ÇÑ ÀÚ¿øÀ¸·Î ¼³Á¤ÇÏ¿´Áö¸¸
    ÇØ´ç URL¿¡ ´Ù¸¥ Æ¯º°ÇÑ ÇÚµé·¯°¡ ¾ø´Â »óÈ²À» »ó»óÇØº¸¶ó.
    ÀÌ °æ¿ì ¸¶Áö¸· ½½·¡½¬°¡ ÀÖ´Â ¿äÃ»Àº <code>index.html</code>
    ÆÄÀÏÀ» º¸¿©ÁØ´Ù. <strong>±×·¯³ª ¸¶Áö¸· ½½·¡½¬°¡ ¾ø´Â ¿äÃ»Àº
    µð·ºÅä¸® ³»¿ëÀ» º¸¿©ÁØ´Ù</strong>.</p>
    </note>
</usage>
</directivesynopsis>

</modulesynopsis>
