Apache HTTP Server Version 2.4
¼³¸í: | »ç¿ëÀÚº° µð·ºÅ丮 |
---|---|
»óÅÂ: | Base |
¸ðµâ¸í: | userdir_module |
¼Ò½ºÆÄÀÏ: | mod_userdir.c |
ÀÌ ¸ðµâÀ» »ç¿ëÇϸé https://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
Å°¿öµå¸¦ »ç¿ëÇÏÁö ¾ÊÀ¸¸é, ¾Æ±Ô¸ÕÆ®¸¦
ÆÄÀϸí ÆÐÅÏÀ¸·Î ó¸®ÇÏ¿© µð·ºÅ丮·Î º¯È¯ÇÑ´Ù.
https://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 https://www.foo.com/users | https://www.foo.com/users/bob/one/two.html |
UserDir https://www.foo.com/*/usr | https://www.foo.com/bob/usr/one/two.html |
UserDir https://www.foo.com/~*/ | https://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 https://www.foo.com/
https://www.foo.com/~bob/one/two.html ¿äûÀ» Çϸé, ¸ÕÀú ~bob/public_html/one/two.html ÆäÀÌÁö¸¦ ã°í, /usr/web/bob/one/two.htmlÀ» ãÀº ÈÄ, ¸¶Áö¸·À¸·Î https://www.foo.com/bob/one/two.htmlÀ¸·Î ¸®´ÙÀÌ·º¼ÇÀ» º¸³½´Ù.
¸®´ÙÀÌ·º¼ÇÀ» »ç¿ëÇÑ´Ù¸é ¸ñ·ÏÀÇ ¸¶Áö¸·¿¡ µÎ¾î¾ß ÇÑ´Ù. ¾ÆÆÄÄ¡´Â ¸®´ÙÀÌ·º¼ÇÀÌ ¼º°øÇß´ÂÁö ¾Ë ¼ö ¾ø±â¶§¹®¿¡, ¸®´ÙÀÌ·º¼ÇÀ» ¸ñ·Ï ¾Õ¿¡ µÎ¸é Ç×»ó ¸®´ÙÀÌ·º¼ÇÀ» »ç¿ëÇÏ°Ô µÈ´Ù.