Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ
  ApacheÀÇ IndexesµÈ ÆäÀÌÁö¿¡¼­ ÇѱÛÇ¥½Ã ÀÛ¼ºÀÏ : 2008/04/10 18:58
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 10459
     
    Á¦  ¸ñ : ApacheÀÇ IndexesµÈ ÆäÀÌÁö¿¡¼­ ÇѱÛÇ¥½Ã
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
    ÀÛ¼ºÀÏ : 2008.3.25(È­)
    Á¤¸®ÀÏ : 2008.4.9(¼ö)

    Apache ¼³Á¤½Ã °¡Àå ¸ÕÀú ¾ø¾Ö´Â ¼³Á¤ÁßÀÇ Çϳª°¡ Options Indexes ÀÌ´Ù. Indexes ¼³Á¤ÀÌ µÇ¾î ÀÖ°í ÇØ´ç µð·ºÅ丮¿¡ index.html, index.php µî DirectoryIndex¿¡¼­ ÁöÁ¤ÇÑ ÆÄÀÏÀÌ ¾ø´Ù¸é, ÇØ´ç µð·ºÅ丮ÀÇ ÆÄÀÏ ¸ñ·ÏÀÌ ³ª¿­µÈ´Ù. ÀǵµÀûÀ¸·Î ÆÄÀϸñ·ÏÀ» º¸¿©Áà¾ßÇÏ´Â °æ¿ì°¡ ¾Æ´Ï¸é, º¸¾ÈÀ» À§Çؼ­ »©ÁÖ´Â°Ô ÁÁ´Ù. http://www.ibiblio.org/pub/ Àº ÆÄÀÏ Á¦°øµîÀ» ¸ñÀûÀ¸·Î Indexes ·Î ¼³Á¤µÈ °æ¿ìÀÌ´Ù.

     
    <Directory "...">
            Options Indexes -MultiViews
    </Directory>
     


    ÁÖÀ§ ºÐÀÌ Indexes¸¦ ÇÊ¿äÇؼ­ ¼³Á¤Çߴµ¥, ÇѱÛÆÄÀÏÀ̳ª µð·ºÅ丮°¡ ±úÁø´Ù´Â ¸»¾¸À» Çϼ̴Ù. Indexes¸¦ »ç¿ëÇÏÁö ¾Ê´Â °ü°è·Î ¸î°¡Áö Å×½ºÆ®¿Í ¼³Á¤À» ã¾Æº» °á°ú apache ¹®¼­¿¡¼­ ´äÀ» ã¾Ò´Ù.



    Apache Module mod_autoindex
    http://httpd.apache.org/docs/2.2/en/mod/mod_autoindex.html#indexoptions

     
    Charset=character-set (Apache 2.0.61 and later)
        The Charset keyword allows you to specify the character set of the generated page. The default is either ISO-8859-1 or UTF-8, depending on whether the underlying file system is unicode or not.
        Example:

        IndexOptions Charset=UTF-8
     


    Apache 2.0.61 ÀÌÈÄ(2.2.xÆ÷ÇÔ)¿¡¼­ ¹®ÀÚ¼ÂÀ» ÁöÁ¤ÇÏ´Â ¼³Á¤ÀÌ Ãß°¡¾úÀ¸¸ç, ¼³Á¤ÇÏÁö ¾ÊÀ» °æ¿ì ISO-8859-1 ¶Ç´Â UTF-8·Î µÈ´Ù. Å×½ºÆ®°á°ú ISO-8859-1 À¸·Î Ç¥½ÃµÇ¾ú´Ù. µû¶ó¼­ EUC-KR·Î ÀÎÄÚµùµÈ ÆÄÀϸíÀº ´ÙÀ½°ú °°Àº ¼³Á¤À» Ãß°¡ÇØÁÖ¸é µÈ´Ù.

     
    IndexOptions Charset=euc-kr
     





    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ / URL : http://coffeenix.net/board_view.php?bd_code=1604