<-
Apache > HTTP Server > Documentation > Version 2.0 > ¸ðµâ

Please note

This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at:

You may follow this link to go to the current version of this document.

¾ÆÆÄÄ¡ ¸ðµâ mod_userdir

°¡´ÉÇÑ ¾ð¾î:  en  |  ja  |  ko  |  tr 

¼³¸í:»ç¿ëÀÚº° µð·ºÅ丮
»óÅÂ:Base
¸ðµâ¸í:userdir_module
¼Ò½ºÆÄÀÏ:mod_userdir.c

¿ä¾à

ÀÌ ¸ðµâÀ» »ç¿ëÇϸé http://example.com/~user/ ½ÄÀ¸·Î »ç¿ëÀÚº° µð·ºÅ丮¿¡ Á¢±ÙÇÒ ¼ö ÀÖ´Ù.

Áö½Ã¾îµé

Âü°í

top

UserDir Áö½Ã¾î

¼³¸í:»ç¿ëÀÚº° µð·ºÅ丮 À§Ä¡
¹®¹ý:UserDir directory-filename
±âº»°ª:UserDir public_html
»ç¿ëÀå¼Ò:ÁÖ¼­¹ö¼³Á¤, °¡»óÈ£½ºÆ®
»óÅÂ:Base
¸ðµâ:mod_userdir

UserDir Áö½Ã¾î´Â »ç¿ëÀÚÀÇ ¹®¼­¿¡ ´ëÇÑ ¿äûÀ» ¹ÞÀ»¶§ »ç¿ëÀÚ È¨µð·ºÅ丮 ¾È¿¡¼­ »ç¿ëÇÒ ½ÇÁ¦ µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ´Ù. Directory-filenameÀº ´ÙÀ½ Áß ÇϳªÀÌ´Ù:

Userdir Áö½Ã¾î¿¡ enabled³ª disabled Å°¿öµå¸¦ »ç¿ëÇÏÁö ¾ÊÀ¸¸é, ¾Æ±Ô¸ÕÆ®¸¦ ÆÄÀϸí ÆÐÅÏÀ¸·Î ó¸®ÇÏ¿© µð·ºÅ丮·Î º¯È¯ÇÑ´Ù. http://www.foo.com/~bob/one/two.html¿¡ ´ëÇÑ ¿äûÀº ´ÙÀ½°ú °°ÀÌ º¯È¯µÈ´Ù:

»ç¿ëÇÑ UserDir Áö½Ã¾î º¯È¯ÇÑ °æ·Î
UserDir public_html~bob/public_html/one/two.html
UserDir /usr/web/usr/web/bob/one/two.html
UserDir /home/*/www/home/bob/www/one/two.html

´ÙÀ½ Áö½Ã¾î´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù:

»ç¿ëÇÑ UserDir Áö½Ã¾î º¯È¯ÇÑ °æ·Î
UserDir http://www.foo.com/usershttp://www.foo.com/users/bob/one/two.html
UserDir http://www.foo.com/*/usrhttp://www.foo.com/bob/usr/one/two.html
UserDir http://www.foo.com/~*/http://www.foo.com/~bob/one/two.html
ÀÌ Áö½Ã¾î¸¦ »ç¿ëÇÒ¶§ ÁÖÀÇÇ϶ó; ¿¹¸¦ µé¾î, "UserDir ./"´Â "/~root"¸¦ ¾Æ¸¶µµ ¹Ù¶÷Á÷ÇÏÁö ¾Ê°Ô "/"·Î º¯È¯ÇÑ´Ù. ¼³Á¤¿¡ "UserDir disabled root"¸¦ Æ÷ÇÔÇÏ±æ °­·ÂÈ÷ ±ÇÇÑ´Ù. ÀÚ¼¼ÇÑ Á¤º¸¸¦ ¾Ë·Á¸é Directory Áö½Ã¾î¿Í º¸¾È ÆÁµµ Âü°íÇ϶ó.

Ãß°¡ ¿¹Á¦:

¸î¸î »ç¿ëÀÚ¿¡°Ô¸¸ UserDir µð·ºÅ丮¸¦ Çã¿ëÇÑ´Ù¸é, ´ÙÀ½°ú °°´Ù:

UserDir disabled
UserDir enabled user1 user2 user3

´ëºÎºÐÀÇ »ç¿ëÀÚ¿¡°Ô UserDir µð·ºÅ丮¸¦ Çã¿ëÇÏ°í ÀϺθ¸ °ÅºÎÇÑ´Ù¸é, ´ÙÀ½°ú °°´Ù:

UserDir enabled
UserDir disabled user4 user5 user6

´Ù¸¥ »ç¿ëÀÚ µð·ºÅ丮¸¦ ÁöÁ¤ÇÒ ¼öµµ ÀÖ´Ù. ´ÙÀ½°ú °°Àº ¸í·É¾î¸¦ »ç¿ëÇÑ´Ù¸é:

Userdir public_html /usr/web http://www.foo.com/

http://www.foo.com/~bob/one/two.html ¿äûÀ» Çϸé, ¸ÕÀú ~bob/public_html/one/two.html ÆäÀÌÁö¸¦ ã°í, /usr/web/bob/one/two.htmlÀ» ãÀº ÈÄ, ¸¶Áö¸·À¸·Î http://www.foo.com/bob/one/two.htmlÀ¸·Î ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù.

¸®´ÙÀÌ·º¼ÇÀ» »ç¿ëÇÑ´Ù¸é ¸ñ·ÏÀÇ ¸¶Áö¸·¿¡ µÎ¾î¾ß ÇÑ´Ù. ¾ÆÆÄÄ¡´Â ¸®´ÙÀÌ·º¼ÇÀÌ ¼º°øÇß´ÂÁö ¾Ë ¼ö ¾ø±â¶§¹®¿¡, ¸®´ÙÀÌ·º¼ÇÀ» ¸ñ·Ï ¾Õ¿¡ µÎ¸é Ç×»ó ¸®´ÙÀÌ·º¼ÇÀ» »ç¿ëÇÏ°Ô µÈ´Ù.

Âü°í

°¡´ÉÇÑ ¾ð¾î:  en  |  ja  |  ko  |  tr