1 <?xml version="1.0" encoding="EUC-KR" ?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 105989 -->
7 Copyright 2003-2004 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
22 <modulesynopsis metafile="mod_dir.xml.meta">
24 <description>"¸¶Áö¸· ½½·¡½¬" ¸®´ÙÀÌ·º¼ÇÀ» Á¦°øÇÏ°í µð·ºÅ丮
25 index ÆÄÀÏÀ» ¼ºñ½ºÇÑ´Ù</description>
27 <sourcefile>mod_dir.c</sourcefile>
28 <identifier>dir_module</identifier>
31 <p>µð·ºÅ丮ÀÇ index´Â ´ÙÀ½ µÑÁß ÇÑ°¡Áö ¹æ¹ýÀ¸·Î Á¦°øµÈ´Ù:</p>
34 <li>»ç¿ëÀÚ°¡ ÀÛ¼ºÇÑ º¸Åë <code>index.html</code>À̶ó´Â
35 ÆÄÀÏ. <directive module="mod_dir">DirectoryIndex</directive>
36 Áö½Ã¾î´Â ÀÌ ÆÄÀÏÀÇ À̸§À» ÁöÁ¤ÇÑ´Ù. <module>mod_dir</module>°¡
37 ÀÌ Áö½Ã¾î¸¦ Á¦°øÇÑ´Ù.</li>
39 <li>¾Æ´Ï¶ó¸é ¼¹ö°¡ ¸¸µç ¸ñ·Ï. <module>mod_autoindex</module>°¡
40 ÀÌ ±â´ÉÀ» Á¦°øÇÑ´Ù.</li>
42 <p>µÎ ±â´ÉÀº ¼·Î º°°³·Î ¿øÇÑ´Ù¸é ÀÚµ¿ index »ý¼ºÀ» ¿ÏÀüÈ÷
43 ¾ø¾Ù (ȤÀº ±³Ã¼ÇÒ) ¼ö ÀÖ´Ù.</p>
45 <p><code>dirname</code>ÀÌ µð·ºÅ丮¶ó¸é ¼¹ö´Â URL
46 <code>http://servername/foo/dirname</code> ¿äûÀ» ¹ÞÀ¸¸é
47 "¸¶Áö¸· ½½·¡½¬" ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù. µð·ºÅ丮¿¡´Â ¸¶Áö¸·
48 ½½·¡½¬°¡ ÇÊ¿äÇÏ´Ù. ±×·¡¼ <module>mod_dir</module>Àº
49 <code>http://servername/foo/dirname/</code>·Î ¸®´ÙÀÌ·º¼ÇÀ»
54 <name>DirectoryIndex</name>
55 <description>Ŭ¶óÀ̾ðÆ®°¡ µð·ºÅ丮¸¦ ¿äûÇÒ¶§ ã¾Æº¼ ÀÚ¿ø ¸ñ·Ï</description>
56 <syntax>DirectoryIndex
57 <var>local-url</var> [<var>local-url</var>] ...</syntax>
58 <default>DirectoryIndex index.html</default>
59 <contextlist><context>server config</context><context>virtual host</context>
60 <context>directory</context><context>.htaccess</context></contextlist>
61 <override>Indexes</override>
64 <p><directive>DirectoryIndex</directive> Áö½Ã¾î´Â Ŭ¶óÀ̾ðÆ®°¡
65 µð·ºÅ丮¸í ³¡¿¡ /¸¦ ºÙ¿©¼ µð·ºÅ丮ÀÇ index¸¦ ¿äûÇÒ¶§ ã¾Æº¼
66 ÀÚ¿ø ¸ñ·ÏÀ» ÁöÁ¤ÇÑ´Ù. <var>Local-url</var>Àº ¿äûÇÑ µð·ºÅ丮¿¡
67 »ó´ëÀûÀÎ ¹®¼ÀÇ (%·Î ÀÎÄÚµùµÈ) URLÀÌ´Ù. º¸ÅëÀº µð·ºÅ丮¿¡
68 ÀÖ´Â ÆÄÀϸíÀÌ´Ù. ¿©·¯ URLÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ°í, ÀÌ °æ¿ì ¼¹ö´Â
69 ù¹ø°·Î ãÀº ÆÄÀÏÀ» º¸³½´Ù. ÀÚ¿øÀ» ãÀ» ¼ö ¾ø°í
70 <code>Indexes</code> ¿É¼ÇÀ» ¼³Á¤ÇÏ¿´´Ù¸é ¼¹ö´Â Á÷Á¢ µð·ºÅ丮
73 <example><title>¿¹Á¦</title>
74 DirectoryIndex index.html
77 <p>ÀÌ °æ¿ì <code>http://myserver/docs/</code>¸¦ ¿äûÇÒ¶§
78 <code>http://myserver/docs/index.html</code>ÀÌ ÀÖÀ¸¸é À̸¦
79 º¸³»°í, ¾ø´Ù¸é µð·ºÅ丮 ¸ñ·ÏÀ» º¸³½´Ù.</p>
81 <p>¹®¼°¡ ¹Ýµå½Ã µð·ºÅ丮¿¡ »ó´ëÀûÀÏ ÇÊ¿ä´Â ¾ø´Ù.</p>
84 DirectoryIndex index.html index.txt /cgi-bin/index.pl
87 <p>ÀÌ °æ¿ì µð·ºÅ丮¿¡ <code>index.html</code>À̳ª
88 <code>index.txt</code>°¡ ¾øÀ¸¸é CGI ½ºÅ©¸³Æ®
89 <code>/cgi-bin/index.pl</code>À» ½ÇÇàÇÑ´Ù.</p>
94 <name>DirectorySlash</name>
95 <description>¸¶Áö¸· ½½·¡½¬ ¸®´ÙÀÌ·º¼ÇÀ» Å°°í ²ö´Ù</description>
96 <syntax>DirectorySlash On|Off</syntax>
97 <default>DirectorySlash On</default>
98 <contextlist><context>server config</context><context>virtual host</context>
99 <context>directory</context><context>.htaccess</context></contextlist>
100 <override>Indexes</override>
101 <compatibility>¾ÆÆÄÄ¡ 2.0.51 ÀÌÈĺÎÅÍ</compatibility>
104 <p><directive>DirectorySlash</directive> Áö½Ã¾î´Â
105 <module>mod_dir</module>°¡ µð·ºÅ丮¸¦ °¡¸®Å°´Â URLÀ» ¼öÁ¤ÇÒÁö
108 <p>»ç¿ëÀÚ°¡ ¸¶Áö¸· ½½·¡½¬¾øÀÌ µð·ºÅ丮¿¡ ÇØ´çÇÏ´Â ÀÚ¿øÀ»
109 ¿äûÇϸé, <module>mod_dir</module>´Â º¸Åë ´ÙÀ½°ú °°Àº ÀÌÀ¯·Î
110 »ç¿ëÀÚ¸¦ ¸¶Áö¸· ½½·¡½¬¸¦ <em>ºÙÀÎ</em> µ¿ÀÏÇÑ ÀÚ¿øÀ¸·Î
114 <li>»ç¿ëÀÚ´Â °á±¹ ÀÚ¿øÀÇ Á¤±Ô URLÀ» ¿äûÇÏ°Ô µÈ´Ù</li>
115 <li><module>mod_autoindex</module>°¡ ¿Ã¹Ù·Î µ¿ÀÛÇÑ´Ù. ÀÌ
116 ±â´ÉÀÌ ¾ø´Ù¸é ÀÌ ¸ðµâÀº ¸µÅ©¿¡ À߸øµÈ °æ·Î¸¦ ¾²°Ô µÈ´Ù.</li>
117 <li><directive module="mod_dir">DirectoryIndex</directive>´Â
118 ¸¶Áö¸· ½½·¡½¬°¡ ÀÖ´Â µð·ºÅ丮 ¿äû<em>¸¸À»</em> ó¸®ÇÑ´Ù.</li>
119 <li>html ÆäÀÌÁö¿¡ ÀÖ´Â »ó´ëÀûÀÎ URL ÂüÁ¶°¡ ¿Ã¹Ù·Î µ¿ÀÛÇÑ´Ù.</li>
122 <p>±×·±µ¥ ÀÌ ±â´ÉÀ» ¿øÇÏÁö ¾Ê°Å<em>³ª</em> À§¿¡ µç ÀÌÀ¯°¡
123 ´ç½Å¿¡°Ô ¾Ë¸ÂÁö ¾Ê´Ù¸é ´ÙÀ½°ú °°ÀÌ ¸®´ÙÀÌ·º¼ÇÀ» ÇÏÁö ¾ÊÀ»
127 # ¾Æ·¡ º¸¾È °æ°í Âü°í!<br />
128 <Location /some/path><br />
130 DirectorySlash Off<br />
131 SetHandler some-handler<br />
136 <note type="warning"><title>º¸¾È °æ°í</title>
137 <p>¸¶Áö¸· ½½·¡½¬ ¸®´ÙÀÌ·º¼ÇÀ» ²ô¸é Á¤º¸°¡ À¯ÃâµÉ ¼ö ÀÖ´Ù.
138 (<code>Options +Indexes</code>) <module>mod_autoindex</module>¸¦
139 »ç¿ëÇÏ°í <directive module="mod_dir">DirectoryIndex</directive>¸¦
140 (<code>index.html</code> °°Àº) À¯È¿ÇÑ ÀÚ¿øÀ¸·Î ¼³Á¤ÇÏ¿´Áö¸¸
141 ÇØ´ç URL¿¡ ´Ù¸¥ Ưº°ÇÑ Çڵ鷯°¡ ¾ø´Â »óȲÀ» »ó»óÇغ¸¶ó.
142 ÀÌ °æ¿ì ¸¶Áö¸· ½½·¡½¬°¡ ÀÖ´Â ¿äûÀº <code>index.html</code>
143 ÆÄÀÏÀ» º¸¿©ÁØ´Ù. <strong>±×·¯³ª ¸¶Áö¸· ½½·¡½¬°¡ ¾ø´Â ¿äûÀº
144 µð·ºÅ丮 ³»¿ëÀ» º¸¿©ÁØ´Ù</strong>.</p>