Apache HTTP Server Version 2.2
This document refers to a legacy release (2.2) of Apache httpd. The active release (2.4) is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
¼³¸í: | »ç¿ëÀÚº° µð·ºÅ丮 |
---|---|
»óÅÂ: | Base |
¸ðµâ¸í: | userdir_module |
¼Ò½ºÆÄÀÏ: | mod_userdir.c |
ÀÌ ¸ðµâÀ» »ç¿ëÇϸé http://example.com/~user/
½ÄÀ¸·Î
»ç¿ëÀÚº° µð·ºÅ丮¿¡ Á¢±ÙÇÒ ¼ö ÀÖ´Ù.
¼³¸í: | »ç¿ëÀÚº° µð·ºÅ丮 À§Ä¡ |
---|---|
¹®¹ý: | UserDir directory-filename |
±âº»°ª: | UserDir public_html |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤, °¡»óÈ£½ºÆ® |
»óÅÂ: | Base |
¸ðµâ: | mod_userdir |
UserDir
Áö½Ã¾î´Â »ç¿ëÀÚÀÇ ¹®¼¿¡ ´ëÇÑ
¿äûÀ» ¹ÞÀ»¶§ »ç¿ëÀÚ È¨µð·ºÅ丮 ¾È¿¡¼ »ç¿ëÇÒ ½ÇÁ¦ µð·ºÅ丮¸¦
ÁöÁ¤ÇÑ´Ù. Directory-filenameÀº ´ÙÀ½ Áß ÇϳªÀÌ´Ù:
disabled
Å°¿öµå.
enabled
Å°¿öµå·Î (¾Æ·¡ Âü°í) Á÷Á¢ À̸§À» ÁöÁ¤ÇÏÁö ¾Ê¾Ò´Ù¸é
¸ðµç »ç¿ëÀÚ¸í-µð·ºÅ丮 º¯È¯À» ÇÏÁö ¾Ê´Â´Ù.disabled
Å°¿öµå µÚ¿¡ °ø¹éÀ¸·Î ±¸ºÐÇÑ »ç¿ëÀÚ¸í ¸ñ·Ï.
»ç¿ëÀÚ¸íÀÌ enabled
±¸¹®¿¡ ÀÖ´Ù°í ÇÏ´õ¶óµµ, ÀÌ ¸ñ·Ï¿¡
ÀÖ´Â »ç¿ëÀÚ¸íÀº µð·ºÅ丮 º¯È¯À» ÇÏÁö ¾Ê´Â´Ù.enabled
Å°¿öµå µÚ¿¡ °ø¹éÀ¸·Î ±¸ºÐÇÑ »ç¿ëÀÚ¸í ¸ñ·Ï.
Àüü disableÀ» »ç¿ëÇÏ°í »ç¿ëÀÚ¸íÀÌ disabled
±¸¹®¿¡
¾ø´õ¶óµµ, »ç¿ëÀÚ¸íÀ» µð·ºÅ丮 º¯È¯ÇÑ´Ù.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/users | http://www.foo.com/users/bob/one/two.html |
UserDir http://www.foo.com/*/usr | http://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À¸·Î ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù.
¸®´ÙÀÌ·º¼ÇÀ» »ç¿ëÇÑ´Ù¸é ¸ñ·ÏÀÇ ¸¶Áö¸·¿¡ µÎ¾î¾ß ÇÑ´Ù. ¾ÆÆÄÄ¡´Â ¸®´ÙÀÌ·º¼ÇÀÌ ¼º°øÇß´ÂÁö ¾Ë ¼ö ¾ø±â¶§¹®¿¡, ¸®´ÙÀÌ·º¼ÇÀ» ¸ñ·Ï ¾Õ¿¡ µÎ¸é Ç×»ó ¸®´ÙÀÌ·º¼ÇÀ» »ç¿ëÇÏ°Ô µÈ´Ù.